Revert "Alter default http boot path for containerized Ironic"
overcloud_prep_images in fs035 is broken with it. It might be affecting other places as well.
This reverts commit b66ce82f86
.
Change-Id: I5f68b0392644fe28c85ff1e2a2a3766b6c897d9e
This commit is contained in:
parent
b66ce82f86
commit
9ac6bd66af
@ -1,6 +0,0 @@
|
|||||||
---
|
|
||||||
deprecations:
|
|
||||||
- |
|
|
||||||
The default value of `--http-boot` changed from `/httpboot` to
|
|
||||||
`/var/lib/ironic/httpboot` as containerized Ironic services
|
|
||||||
expect.
|
|
@ -42,7 +42,6 @@ UPGRADE_QUEUE = 'upgrade'
|
|||||||
FFWD_UPGRADE_QUEUE = 'ffwdupgrade'
|
FFWD_UPGRADE_QUEUE = 'ffwdupgrade'
|
||||||
STACK_TIMEOUT = 240
|
STACK_TIMEOUT = 240
|
||||||
|
|
||||||
IRONIC_HTTP_BOOT_BIND_MOUNT = '/var/lib/ironic/httpboot'
|
|
||||||
|
|
||||||
# The default ffwd upgrade ansible playbooks generated from heat stack output
|
# The default ffwd upgrade ansible playbooks generated from heat stack output
|
||||||
FFWD_UPGRADE_PLAYBOOK = "fast_forward_upgrade_playbook.yaml"
|
FFWD_UPGRADE_PLAYBOOK = "fast_forward_upgrade_playbook.yaml"
|
||||||
|
@ -256,11 +256,9 @@ class TestUploadOvercloudImage(TestPluginV1):
|
|||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
mock_subprocess_call.call_args_list, [
|
mock_subprocess_call.call_args_list, [
|
||||||
mock.call('sudo cp -f "./ironic-python-agent.kernel" '
|
mock.call('sudo cp -f "./ironic-python-agent.kernel" '
|
||||||
'"/var/lib/ironic/httpboot/agent.kernel"',
|
'"/httpboot/agent.kernel"', shell=True),
|
||||||
shell=True),
|
|
||||||
mock.call('sudo cp -f "./ironic-python-agent.initramfs" '
|
mock.call('sudo cp -f "./ironic-python-agent.initramfs" '
|
||||||
'"/var/lib/ironic/httpboot/agent.ramdisk"',
|
'"/httpboot/agent.ramdisk"', shell=True)
|
||||||
shell=True)
|
|
||||||
])
|
])
|
||||||
|
|
||||||
@mock.patch('os.path.isfile', autospec=True)
|
@mock.patch('os.path.isfile', autospec=True)
|
||||||
@ -313,11 +311,9 @@ class TestUploadOvercloudImage(TestPluginV1):
|
|||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
mock_subprocess_call.call_args_list, [
|
mock_subprocess_call.call_args_list, [
|
||||||
mock.call('sudo cp -f "./ironic-python-agent.kernel" '
|
mock.call('sudo cp -f "./ironic-python-agent.kernel" '
|
||||||
'"/var/lib/ironic/httpboot/agent.kernel"',
|
'"/httpboot/agent.kernel"', shell=True),
|
||||||
shell=True),
|
|
||||||
mock.call('sudo cp -f "./ironic-python-agent.initramfs" '
|
mock.call('sudo cp -f "./ironic-python-agent.initramfs" '
|
||||||
'"/var/lib/ironic/httpboot/agent.ramdisk"',
|
'"/httpboot/agent.ramdisk"', shell=True)
|
||||||
shell=True)
|
|
||||||
])
|
])
|
||||||
|
|
||||||
@mock.patch('os.path.isfile')
|
@mock.patch('os.path.isfile')
|
||||||
@ -463,11 +459,9 @@ class TestUploadOvercloudImageFull(TestPluginV1):
|
|||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
mock_subprocess_call.call_args_list, [
|
mock_subprocess_call.call_args_list, [
|
||||||
mock.call('sudo cp -f "./ironic-python-agent.kernel" '
|
mock.call('sudo cp -f "./ironic-python-agent.kernel" '
|
||||||
'"/var/lib/ironic/httpboot/agent.kernel"',
|
'"/httpboot/agent.kernel"', shell=True),
|
||||||
shell=True),
|
|
||||||
mock.call('sudo cp -f "./ironic-python-agent.initramfs" '
|
mock.call('sudo cp -f "./ironic-python-agent.initramfs" '
|
||||||
'"/var/lib/ironic/httpboot/agent.ramdisk"',
|
'"/httpboot/agent.ramdisk"', shell=True)
|
||||||
shell=True)
|
|
||||||
])
|
])
|
||||||
|
|
||||||
@mock.patch('os.path.isfile', autospec=True)
|
@mock.patch('os.path.isfile', autospec=True)
|
||||||
|
@ -28,7 +28,6 @@ from prettytable import PrettyTable
|
|||||||
from tripleo_common.image import build
|
from tripleo_common.image import build
|
||||||
|
|
||||||
from tripleoclient import command
|
from tripleoclient import command
|
||||||
from tripleoclient import constants
|
|
||||||
from tripleoclient import utils as plugin_utils
|
from tripleoclient import utils as plugin_utils
|
||||||
|
|
||||||
|
|
||||||
@ -259,9 +258,7 @@ class UploadOvercloudImage(command.Command):
|
|||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--http-boot",
|
"--http-boot",
|
||||||
default=self._get_environment_var(
|
default=self._get_environment_var('HTTP_BOOT', '/httpboot'),
|
||||||
'HTTP_BOOT',
|
|
||||||
constants.IRONIC_HTTP_BOOT_BIND_MOUNT),
|
|
||||||
help=_("Root directory for the introspection image")
|
help=_("Root directory for the introspection image")
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
|
Loading…
Reference in New Issue
Block a user