Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 1.4k
Deprecate EL6 and Add 4.13-4.14 Upgrade Path#3591
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,71 @@ | ||
| // Licensed to the Apache Software Foundation (ASF) under one | ||
| // or more contributor license agreements. See the NOTICE file | ||
| // distributed with this work for additional information | ||
| // regarding copyright ownership. The ASF licenses this file | ||
| // to you under the Apache License, Version 2.0 (the | ||
| // "License"); you may not use this file except in compliance | ||
| // with the License. You may obtain a copy of the License at | ||
| // | ||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||
| // | ||
| // Unless required by applicable law or agreed to in writing, | ||
| // software distributed under the License is distributed on an | ||
| // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| // KIND, either express or implied. See the License for the | ||
| // specific language governing permissions and limitations | ||
| // under the License. | ||
| package com.cloud.upgrade.dao; | ||
| import java.io.InputStream; | ||
| import java.sql.Connection; | ||
| import org.apache.log4j.Logger; | ||
| import com.cloud.utils.exception.CloudRuntimeException; | ||
| public class Upgrade41300to41400 implements DbUpgrade { | ||
| final static Logger LOG = Logger.getLogger(Upgrade41300to41400.class); | ||
| @Override | ||
| public String[] getUpgradableVersionRange() { | ||
| return new String[] {"4.13.0.0", "4.14.0.0"}; | ||
| } | ||
| @Override | ||
| public String getUpgradedVersion() { | ||
| return "4.14.0.0"; | ||
| } | ||
| @Override | ||
| public boolean supportsRollingUpgrade() { | ||
| return false; | ||
| } | ||
| @Override | ||
| public InputStream[] getPrepareScripts() { | ||
| final String scriptFile = "META-INF/db/schema-41300to41400.sql"; | ||
| final InputStream script = Thread.currentThread().getContextClassLoader().getResourceAsStream(scriptFile); | ||
| if (script == null) { | ||
| throw new CloudRuntimeException("Unable to find " + scriptFile); | ||
| } | ||
| return new InputStream[] {script}; | ||
| } | ||
| @Override | ||
| public void performDataMigration(Connection conn) { | ||
| } | ||
| @Override | ||
| public InputStream[] getCleanupScripts() { | ||
| final String scriptFile = "META-INF/db/schema-41300to41400-cleanup.sql"; | ||
| final InputStream script = Thread.currentThread().getContextClassLoader().getResourceAsStream(scriptFile); | ||
| if (script == null) { | ||
| throw new CloudRuntimeException("Unable to find " + scriptFile); | ||
| } | ||
| return new InputStream[] {script}; | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| -- Licensed to the Apache Software Foundation (ASF) under one | ||
| -- or more contributor license agreements. See the NOTICE file | ||
| -- distributed with this work for additional information | ||
| -- regarding copyright ownership. The ASF licenses this file | ||
| -- to you under the Apache License, Version 2.0 (the | ||
| -- "License"); you may not use this file except in compliance | ||
| -- with the License. You may obtain a copy of the License at | ||
| -- | ||
| -- http://www.apache.org/licenses/LICENSE-2.0 | ||
| -- | ||
| -- Unless required by applicable law or agreed to in writing, | ||
| -- software distributed under the License is distributed on an | ||
| -- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| -- KIND, either express or implied. See the License for the | ||
| -- specific language governing permissions and limitations | ||
| -- under the License. | ||
| --; | ||
| -- Schema upgrade cleanup from 4.13.0.0 to 4.14.0.0 | ||
| --; | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| -- Licensed to the Apache Software Foundation (ASF) under one | ||
| -- or more contributor license agreements. See the NOTICE file | ||
| -- distributed with this work for additional information | ||
| -- regarding copyright ownership. The ASF licenses this file | ||
| -- to you under the Apache License, Version 2.0 (the | ||
| -- "License"); you may not use this file except in compliance | ||
| -- with the License. You may obtain a copy of the License at | ||
| -- | ||
| -- http://www.apache.org/licenses/LICENSE-2.0 | ||
| -- | ||
| -- Unless required by applicable law or agreed to in writing, | ||
| -- software distributed under the License is distributed on an | ||
| -- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| -- KIND, either express or implied. See the License for the | ||
| -- specific language governing permissions and limitations | ||
| -- under the License. | ||
| --; | ||
| -- Schema upgrade from 4.13.0.0 to 4.14.0.0 | ||
| --; | ||
| -- KVM: enable storage data motion on KVM hypervisor_capabilities | ||
| UPDATE `cloud`.`hypervisor_capabilities` SET `storage_motion_supported` = 1 WHERE `hypervisor_capabilities`.`hypervisor_type` = 'KVM'; | ||
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@GabrielBrascher cc @wido this can now be safely enabled by default for KVM as el6 is no longer supported :)