[rdo-dev] Heat problem with containerised undercloud
Adam Huffman
adam.huffman.lists at gmail.com
Thu Apr 12 16:32:38 UTC 2018
The next failure appears to be because os-net-config is looking for the
non-existent eth1 interface:
TASK [Output for NetworkDeployment]
fatal: [192.168.24.1]: FAILED! => {
"failed_when_result": true,
"msg": [
{
"stderr": [
"[2018-04-12 17:27:17,906] (heat-config) [DEBUG] Running
/usr/libexec/heat-config/hooks/script <
/var/lib/heat-config/deployed/676fe26a-bbc0-4ba2-9733-42afaf90f3c9.json",
"[2018-04-12 17:27:18,443] (heat-config) [INFO]
{\"deploy_stdout\": \"\", \"deploy_stderr\": \"+ '[' -n
'{\\\"network_config\\\": [{\\\"addresses\\\": [{\\\"ip_netmask\\\": \\\"
192.168.24.1/24\\\"}], \\\"dns_servers\\\": [], \\\"members\\\":
[{\\\"name\\\": \\\"interface_name\\\", \\\"primary\\\": true,
\\\"type\\\": \\\"interface\\\"}], \\\"name\\\": \\\"br-ctlplane\\\",
\\\"type\\\": \\\"ovs_bridge\\\", \\\"use_dhcp\\\": false}]}' ']'\\n+ '['
-z True ']'\\n+ mkdir -p /etc/os-net-config\\n+ echo
'{\\\"network_config\\\": [{\\\"addresses\\\": [{\\\"ip_netmask\\\": \\\"
192.168.24.1/24\\\"}], \\\"dns_servers\\\": [], \\\"members\\\":
[{\\\"name\\\": \\\"interface_name\\\", \\\"primary\\\": true,
\\\"type\\\": \\\"interface\\\"}], \\\"name\\\": \\\"br-ctlplane\\\",
\\\"type\\\": \\\"ovs_bridge\\\", \\\"use_dhcp\\\": false}]}'\\n++ type -t
network_config_hook\\n+ '[' '' = function ']'\\n+ sed -i
s/bridge_name/br-ex/ /etc/os-net-config/config.json\\n+ sed -i
s/interface_name/eth1/ /etc/os-net-config/config.json\\n+ set +e\\n+
os-net-config -c /etc/os-net-config/config.json -v
--detailed-exit-codes\\n[2018/04/12 05:27:18 PM] [INFO] Using config file
at: /etc/os-net-config/config.json\\n[2018/04/12 05:27:18 PM] [INFO] Ifcfg
net config provider created.\\n[2018/04/12 05:27:18 PM] [INFO] Not using
any mapping file.\\n[2018/04/12 05:27:18 PM] [INFO] Finding active
nics\\n[2018/04/12 05:27:18 PM] [INFO] lo is not an active
nic\\n[2018/04/12 05:27:18 PM] [INFO] em1 is an embedded active
nic\\n[2018/04/12 05:27:18 PM] [INFO] docker0 is not an active
nic\\n[2018/04/12 05:27:18 PM] [INFO] No DPDK mapping available in path
(/var/lib/os-net-config/dpdk_mapping.yaml)\\n[2018/04/12 05:27:18 PM]
[INFO] Active nics are ['em1']\\n[2018/04/12 05:27:18 PM] [INFO] nic1
mapped to: em1\\n[2018/04/12 05:27:18 PM] [INFO] adding bridge:
br-ctlplane\\n[2018/04/12 05:27:18 PM] [ERROR] Unable to read mac address:
eth1\\nTraceback (most recent call last):\\n File
\\\"/bin/os-net-config\\\", line 10, in <module>\\n sys.exit(main())\\n
File \\\"/usr/lib/python2.7/site-packages/os_net_config/cli.py\\\", line
268, in main\\n provider.add_object(obj)\\n File
\\\"/usr/lib/python2.7/site-packages/os_net_config/__init__.py\\\", line
62, in add_object\\n self.add_bridge(obj)\\n File
\\\"/usr/lib/python2.7/site-packages/os_net_config/impl_ifcfg.py\\\", line
506, in add_bridge\\n data = self._add_common(bridge)\\n File
\\\"/usr/lib/python2.7/site-packages/os_net_config/impl_ifcfg.py\\\", line
215, in _add_common\\n mac =
utils.interface_mac(base_opt.primary_interface_name)\\n File
\\\"/usr/lib/python2.7/site-packages/os_net_config/utils.py\\\", line 121,
in interface_mac\\n with open('/sys/class/net/%s/address' % name, 'r')
as f:\\nIOError: [Errno 2] No such file or directory:
'/sys/class/net/eth1/address'\\n+ RETVAL=1\\n+ set -e\\n+ [[ 1 == 2 ]]\\n+
[[ 1 != 0 ]]\\n+ echo 'ERROR: os-net-config configuration failed.'\\nERROR:
os-net-config configuration failed.\\n+ exit 1\\n\",
\"deploy_status_code\": 1}",
"[2018-04-12 17:27:18,443] (heat-config) [DEBUG] [2018-04-12 17:27:17,929]
(heat-config) [INFO] disable_configure_safe_defaults=True",
"[2018-04-12 17:27:17,929] (heat-config) [INFO]
interface_name=eth1",
"[2018-04-12 17:27:17,929] (heat-config) [INFO]
bridge_name=br-ex",
"[2018-04-12 17:27:17,929] (heat-config) [INFO]
deploy_server_id=5afc73d4-5aec-42a9-a1ec-1035da9e164b",
"[2018-04-12 17:27:17,929] (heat-config) [INFO]
deploy_action=CREATE",
"[2018-04-12 17:27:17,930] (heat-config) [INFO]
deploy_stack_id=undercloud-Undercloud-jqksadcll2tk-0-wj6kdjy567yh-NetworkDeployment-xyzrohqru57l-TripleOSoftwareDeployment-c47m7mo5bwvh/bba28770-0e27-46dd-a311-0d53309ee1e6",
"[2018-04-12 17:27:17,930] (heat-config) [INFO]
deploy_resource_name=TripleOSoftwareDeployment",
"[2018-04-12 17:27:17,930] (heat-config) [INFO]
deploy_signal_transport=NO_SIGNAL",
"[2018-04-12 17:27:17,930] (heat-config) [DEBUG] Running
/var/lib/heat-config/heat-config-script/676fe26a-bbc0-4ba2-9733-42afaf90f3c9",
"[2018-04-12 17:27:18,439] (heat-config) [INFO] ",
"[2018-04-12 17:27:18,439] (heat-config) [DEBUG] + '[' -n
'{\"network_config\": [{\"addresses\": [{\"ip_netmask\": \"192.168.24.1/24\"}],
\"dns_servers\": [], \"members\": [{\"name\": \"interface_name\",
\"primary\": true, \"type\": \"interface\"}], \"name\": \"br-ctlplane\",
\"type\": \"ovs_bridge\", \"use_dhcp\": false}]}' ']'",
"+ '[' -z True ']'",
"+ mkdir -p /etc/os-net-config",
"+ echo '{\"network_config\": [{\"addresses\":
[{\"ip_netmask\": \"192.168.24.1/24\"}], \"dns_servers\": [], \"members\":
[{\"name\": \"interface_name\", \"primary\": true, \"type\":
\"interface\"}], \"name\": \"br-ctlplane\", \"type\": \"ovs_bridge\",
\"use_dhcp\": false}]}'",
"++ type -t network_config_hook",
"+ '[' '' = function ']'",
"+ sed -i s/bridge_name/br-ex/
/etc/os-net-config/config.json",
"+ sed -i s/interface_name/eth1/
/etc/os-net-config/config.json",
"+ set +e",
"+ os-net-config -c /etc/os-net-config/config.json -v
--detailed-exit-codes",
"[2018/04/12 05:27:18 PM] [INFO] Using config file at:
/etc/os-net-config/config.json",
"[2018/04/12 05:27:18 PM] [INFO] Ifcfg net config provider
created.",
"[2018/04/12 05:27:18 PM] [INFO] Not using any mapping
file.",
"[2018/04/12 05:27:18 PM] [INFO] Finding active nics",
"[2018/04/12 05:27:18 PM] [INFO] lo is not an active nic",
"[2018/04/12 05:27:18 PM] [INFO] em1 is an embedded active
nic",
"[2018/04/12 05:27:18 PM] [INFO] docker0 is not an active
nic",
"[2018/04/12 05:27:18 PM] [INFO] No DPDK mapping available
in path (/var/lib/os-net-config/dpdk_mapping.yaml)",
"[2018/04/12 05:27:18 PM] [INFO] Active nics are ['em1']",
"[2018/04/12 05:27:18 PM] [INFO] nic1 mapped to: em1",
"[2018/04/12 05:27:18 PM] [INFO] adding bridge:
br-ctlplane",
"[2018/04/12 05:27:18 PM] [ERROR] Unable to read mac
address: eth1",
"Traceback (most recent call last):",
" File \"/bin/os-net-config\", line 10, in <module>",
" sys.exit(main())",
" File
\"/usr/lib/python2.7/site-packages/os_net_config/cli.py\", line 268, in
main",
" provider.add_object(obj)",
" File
\"/usr/lib/python2.7/site-packages/os_net_config/__init__.py\", line 62, in
add_object",
" self.add_bridge(obj)",
" File
\"/usr/lib/python2.7/site-packages/os_net_config/impl_ifcfg.py\", line 506,
in add_bridge",
" data = self._add_common(bridge)",
" File
\"/usr/lib/python2.7/site-packages/os_net_config/impl_ifcfg.py\", line 215,
in _add_common",
" mac =
utils.interface_mac(base_opt.primary_interface_name)",
" File
\"/usr/lib/python2.7/site-packages/os_net_config/utils.py\", line 121, in
interface_mac",
" with open('/sys/class/net/%s/address' % name, 'r') as
f:",
"IOError: [Errno 2] No such file or directory:
'/sys/class/net/eth1/address'",
"+ RETVAL=1",
"+ set -e",
"+ [[ 1 == 2 ]]",
"+ [[ 1 != 0 ]]",
"+ echo 'ERROR: os-net-config configuration failed.'",
"ERROR: os-net-config configuration failed.",
"+ exit 1",
"",
"[2018-04-12 17:27:18,440] (heat-config) [ERROR] Error
running
/var/lib/heat-config/heat-config-script/676fe26a-bbc0-4ba2-9733-42afaf90f3c9.
[1]",
It should be using em1:1, which I've created for this purpose.
Is there a way of setting that value?
For the new method, I'll need to use the latest master, prior to the Rocky
release?
Best Wishes,
Adam
On 12 April 2018 at 17:10, Adam Huffman <adam.huffman.lists at gmail.com>
wrote:
> Hi Alex,
>
> Thanks, that step was indeed missing from the instructions, and it gets a
> lot further.
>
> I'll take a look at the updated documentation too.
>
> Best Wishes,
> Adam
>
> On 12 April 2018 at 17:02, Alex Schultz <aschultz at redhat.com> wrote:
>
>> So it should be noted that we're actively working on the containerized
>> undercloud deployment process for Rocky and you might want to try the
>> new way we will be going forward with. You can see the updated
>> documentation https://review.openstack.org/#/c/558893/. It's much
>> simpler than the existing docs.
>>
>> That being said I think you're missing a step around the the container
>> prep part as "Property DockerRabbitmqConfigImage not assigned"
>> usually means the docker information is not being passed during the
>> deployment. This information is generated with the:
>>
>> openstack overcloud container image prepare \
>> --output-env-file $HOME/docker_registry.yaml
>>
>>
>> You then need to add -e $HOME/docker_registry.yaml to your deploy command.
>>
>> Thanks,
>> -Alex
>>
>> On Thu, Apr 12, 2018 at 7:29 AM, Adam Huffman
>> <adam.huffman.lists at gmail.com> wrote:
>> > Here's the more detailed log:
>> >
>> > 2018-04-12 14:25:24.769 21111 INFO heat.engine.service
>> > [req-3e106a9e-6b06-445e-abcf-44706c00d50a admin admin - - -] Creating
>> stack
>> > undercloud-UndercloudServiceChain-elou4xokwrep-ServiceChain-
>> e6umma7beuwd
>> > 2018-04-12 14:25:26.368 21111 INFO heat.engine.resource
>> > [req-3e106a9e-6b06-445e-abcf-44706c00d50a admin admin - - -] Validating
>> > TemplateResource "36"
>> > 2018-04-12 14:25:26.447 21111 INFO heat.engine.resource
>> > [req-3e106a9e-6b06-445e-abcf-44706c00d50a admin admin - - -] CREATE:
>> > ResourceChain "ServiceChain" Stack
>> > "undercloud-UndercloudServiceChain-elou4xokwrep"
>> > [3c27ccbf-8653-4519-ad95-79b469dde2e2]
>> > 2018-04-12 14:25:26.447 21111 ERROR heat.engine.resource Traceback (most
>> > recent call last):
>> > 2018-04-12 14:25:26.447 21111 ERROR heat.engine.resource File
>> > "/usr/lib/python2.7/site-packages/heat/engine/resource.py", line 918,
>> in
>> > _action_recorder
>> > 2018-04-12 14:25:26.447 21111 ERROR heat.engine.resource yield
>> > 2018-04-12 14:25:26.447 21111 ERROR heat.engine.resource File
>> > "/usr/lib/python2.7/site-packages/heat/engine/resource.py", line 1026,
>> in
>> > _do_action
>> > 2018-04-12 14:25:26.447 21111 ERROR heat.engine.resource yield
>> > self.action_handler_task(action, args=handler_args)
>> > 2018-04-12 14:25:26.447 21111 ERROR heat.engine.resource File
>> > "/usr/lib/python2.7/site-packages/heat/engine/scheduler.py", line 329,
>> in
>> > wrapper
>> > 2018-04-12 14:25:26.447 21111 ERROR heat.engine.resource step =
>> > next(subtask)
>> > 2018-04-12 14:25:26.447 21111 ERROR heat.engine.resource File
>> > "/usr/lib/python2.7/site-packages/heat/engine/resource.py", line 971,
>> in
>> > action_handler_task
>> > 2018-04-12 14:25:26.447 21111 ERROR heat.engine.resource
>> handler_data =
>> > handler(*args)
>> > 2018-04-12 14:25:26.447 21111 ERROR heat.engine.resource File
>> > "/usr/lib/python2.7/site-packages/heat/engine/resources/
>> openstack/heat/resource_chain.py",
>> > line 110, in handle_create
>> > 2018-04-12 14:25:26.447 21111 ERROR heat.engine.resource return
>> > self.create_with_template(self.child_template())
>> > 2018-04-12 14:25:26.447 21111 ERROR heat.engine.resource File
>> > "/usr/lib/python2.7/site-packages/heat/engine/resources/
>> stack_resource.py",
>> > line 338, in create_with_template
>> > 2018-04-12 14:25:26.447 21111 ERROR heat.engine.resource
>> > kwargs['template_id'])
>> > 2018-04-12 14:25:26.447 21111 ERROR heat.engine.resource File
>> > "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in
>> > __exit__
>> > 2018-04-12 14:25:26.447 21111 ERROR heat.engine.resource
>> > self.force_reraise()
>> > 2018-04-12 14:25:26.447 21111 ERROR heat.engine.resource File
>> > "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in
>> > force_reraise
>> > 2018-04-12 14:25:26.447 21111 ERROR heat.engine.resource
>> > six.reraise(self.type_, self.value, self.tb)
>> > 2018-04-12 14:25:26.447 21111 ERROR heat.engine.resource File
>> > "/usr/lib/python2.7/site-packages/heat/engine/resources/
>> stack_resource.py",
>> > line 333, in create_with_template
>> > 2018-04-12 14:25:26.447 21111 ERROR heat.engine.resource **kwargs)
>> > 2018-04-12 14:25:26.447 21111 ERROR heat.engine.resource File
>> > "/usr/lib/python2.7/site-packages/heat/rpc/client.py", line 301, in
>> > _create_stack
>> > 2018-04-12 14:25:26.447 21111 ERROR heat.engine.resource
>> version='1.29')
>> > 2018-04-12 14:25:26.447 21111 ERROR heat.engine.resource File
>> > "/usr/lib/python2.7/site-packages/heat/rpc/client.py", line 88, in call
>> > 2018-04-12 14:25:26.447 21111 ERROR heat.engine.resource return
>> > client.call(ctxt, method, **kwargs)
>> > 2018-04-12 14:25:26.447 21111 ERROR heat.engine.resource File
>> > "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/client.py", line
>> 174,
>> > in call
>> > 2018-04-12 14:25:26.447 21111 ERROR heat.engine.resource
>> > retry=self.retry)
>> > 2018-04-12 14:25:26.447 21111 ERROR heat.engine.resource File
>> > "/usr/lib/python2.7/site-packages/oslo_messaging/transport.py", line
>> 131, in
>> > _send
>> > 2018-04-12 14:25:26.447 21111 ERROR heat.engine.resource
>> > timeout=timeout, retry=retry)
>> > 2018-04-12 14:25:26.447 21111 ERROR heat.engine.resource File
>> > "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/
>> impl_fake.py",
>> > line 219, in send
>> > 2018-04-12 14:25:26.447 21111 ERROR heat.engine.resource return
>> > self._send(target, ctxt, message, wait_for_reply, timeout)
>> > 2018-04-12 14:25:26.447 21111 ERROR heat.engine.resource File
>> > "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/
>> impl_fake.py",
>> > line 206, in _send
>> > 2018-04-12 14:25:26.447 21111 ERROR heat.engine.resource raise
>> failure
>> > 2018-04-12 14:25:26.447 21111 ERROR heat.engine.resource
>> > StackValidationFailed: Property error: resources[36].properties:
>> Property
>> > DockerRabbitmqConfigImage not assigned
>> > 2018-04-12 14:25:26.447 21111 ERROR heat.engine.resource
>> > 2018-04-12 14:25:26.460 21111 INFO eventlet.wsgi.server
>> > [req-87fd4006-5992-4ab3-b217-72748c671c1b admin admin - - -] 127.0.0.1
>> - -
>> > [12/Apr/2018 14:25:26] "GET
>> > /v1/admin/stacks/2340cfb8-064d-4e4d-8096-89be7a3b2757/events
>> ?marker=d5abce43-e93b-402f-aa34-7089f00c7811&nested_depth=6&sort_dir=asc
>> > HTTP/1.1" 302 849 0.070983
>> > 2018-04-12 14:25:26.474 21111 INFO heat.engine.stack
>> > [req-3e106a9e-6b06-445e-abcf-44706c00d50a admin admin - - -] Stack
>> CREATE
>> > FAILED (undercloud-UndercloudServiceChain-elou4xokwrep): Resource
>> CREATE
>> > failed: StackValidationFailed: resources.ServiceChain: Property error:
>> > ServiceChain.resources[36].properties: Property
>> DockerRabbitmqConfigImage
>> > not assigned
>> > 2018-04-12 14:25:26.520 21111 INFO eventlet.wsgi.server
>> > [req-8207c6e0-a86c-4c17-8eed-6c396176b853 admin admin - - -] 127.0.0.1
>> - -
>> > [12/Apr/2018 14:25:26] "GET
>> > /v1/admin/stacks/undercloud/2340cfb8-064d-4e4d-8096-89be7a3b
>> 2757/events?marker=d5abce43-e93b-402f-aa34-7089f00c7811&
>> nested_depth=6&sort_dir=asc
>> > HTTP/1.1" 200 11250 0.051634
>> > 2018-04-12 14:25:26.548 21111 INFO eventlet.wsgi.server
>> > [req-d98e7628-6f3c-45a9-945f-5efed6cdfb5f admin admin - - -] 127.0.0.1
>> - -
>> > [12/Apr/2018 14:25:26] "GET
>> > /v1/admin/stacks/2340cfb8-064d-4e4d-8096-89be7a3b2757 HTTP/1.1" 302 612
>> > 0.024857
>> > 2018-04-12 14:25:26.908 21111 INFO eventlet.wsgi.server
>> > [req-0d67916e-4d4e-4692-b7ed-2eff87a1b1b4 admin admin - - -] 127.0.0.1
>> - -
>> > [12/Apr/2018 14:25:26] "GET
>> > /v1/admin/stacks/undercloud/2340cfb8-064d-4e4d-8096-89be7a3b2757
>> HTTP/1.1"
>> > 200 26774 0.358471
>> > 2018-04-12 14:25:27.396 21111 INFO heat.engine.resource
>> > [req-3e106a9e-6b06-445e-abcf-44706c00d50a admin admin - - -] CREATE:
>> > TemplateResource "UndercloudServiceChain"
>> > [3c27ccbf-8653-4519-ad95-79b469dde2e2] Stack "undercloud"
>> > [2340cfb8-064d-4e4d-8096-89be7a3b2757]
>> > 2018-04-12 14:25:27.396 21111 ERROR heat.engine.resource Traceback (most
>> > recent call last):
>> > 2018-04-12 14:25:27.396 21111 ERROR heat.engine.resource File
>> > "/usr/lib/python2.7/site-packages/heat/engine/resource.py", line 918,
>> in
>> > _action_recorder
>> > 2018-04-12 14:25:27.396 21111 ERROR heat.engine.resource yield
>> > 2018-04-12 14:25:27.396 21111 ERROR heat.engine.resource File
>> > "/usr/lib/python2.7/site-packages/heat/engine/resource.py", line 1026,
>> in
>> > _do_action
>> > 2018-04-12 14:25:27.396 21111 ERROR heat.engine.resource yield
>> > self.action_handler_task(action, args=handler_args)
>> > 2018-04-12 14:25:27.396 21111 ERROR heat.engine.resource File
>> > "/usr/lib/python2.7/site-packages/heat/engine/scheduler.py", line 346,
>> in
>> > wrapper
>> > 2018-04-12 14:25:27.396 21111 ERROR heat.engine.resource step =
>> > next(subtask)
>> > 2018-04-12 14:25:27.396 21111 ERROR heat.engine.resource File
>> > "/usr/lib/python2.7/site-packages/heat/engine/resource.py", line 977,
>> in
>> > action_handler_task
>> > 2018-04-12 14:25:27.396 21111 ERROR heat.engine.resource done =
>> > check(handler_data)
>> > 2018-04-12 14:25:27.396 21111 ERROR heat.engine.resource File
>> > "/usr/lib/python2.7/site-packages/heat/engine/resources/
>> stack_resource.py",
>> > line 404, in check_create_complete
>> > 2018-04-12 14:25:27.396 21111 ERROR heat.engine.resource return
>> > self._check_status_complete(self.CREATE)
>> > 2018-04-12 14:25:27.396 21111 ERROR heat.engine.resource File
>> > "/usr/lib/python2.7/site-packages/heat/engine/resources/
>> stack_resource.py",
>> > line 454, in _check_status_complete
>> > 2018-04-12 14:25:27.396 21111 ERROR heat.engine.resource
>> action=action)
>> > 2018-04-12 14:25:27.396 21111 ERROR heat.engine.resource
>> ResourceFailure:
>> > StackValidationFailed:
>> > resources.UndercloudServiceChain.resources.ServiceChain: Property
>> error:
>> > ServiceChain.resources[36].properties: Property
>> DockerRabbitmqConfigImage
>> > not assigned
>> > 2018-04-12 14:25:27.396 21111 ERROR heat.engine.resource
>> > 2018-04-12 14:25:27.402 21111 INFO heat.engine.stack
>> > [req-3e106a9e-6b06-445e-abcf-44706c00d50a admin admin - - -] Stack
>> CREATE
>> > FAILED (undercloud): Resource CREATE failed: StackValidationFailed:
>> > resources.UndercloudServiceChain.resources.ServiceChain: Property
>> error:
>> > ServiceChain.resources[36].properties: Property
>> DockerRabbitmqConfigImage
>> > not assigned
>> > 2018-04-12 14:25:28.931 21111 INFO eventlet.wsgi.server
>> > [req-3dc46209-6a23-478e-92a3-b3b75357bb28 admin admin - - -] 127.0.0.1
>> - -
>> > [12/Apr/2018 14:25:28] "GET
>> > /v1/admin/stacks/2340cfb8-064d-4e4d-8096-89be7a3b2757/events
>> ?marker=0a1d1832-e877-43c6-9b03-bede83ff0404&nested_depth=6&sort_dir=asc
>> > HTTP/1.1" 302 849 0.016178
>> > 2018-04-12 14:25:29.001 21111 INFO eventlet.wsgi.server
>> > [req-590a4e1d-71cf-401f-97b8-5f0cc9fcbd6d admin admin - - -] 127.0.0.1
>> - -
>> > [12/Apr/2018 14:25:29] "GET
>> > /v1/admin/stacks/undercloud/2340cfb8-064d-4e4d-8096-89be7a3b
>> 2757/events?marker=0a1d1832-e877-43c6-9b03-bede83ff0404&
>> nested_depth=6&sort_dir=asc
>> > HTTP/1.1" 200 2344 0.067888
>> > 2018-04-12 14:25:29.031 21111 INFO eventlet.wsgi.server
>> > [req-1b44e39c-f35f-4dea-95bc-9aff2effa316 admin admin - - -] 127.0.0.1
>> - -
>> > [12/Apr/2018 14:25:29] "GET
>> > /v1/admin/stacks/2340cfb8-064d-4e4d-8096-89be7a3b2757 HTTP/1.1" 302 612
>> > 0.028547
>> > 2018-04-12 14:25:29.497 21111 INFO eventlet.wsgi.server
>> > [req-9cc37a1b-7aa9-4f55-834b-42cf941d4694 admin admin - - -] 127.0.0.1
>> - -
>> > [12/Apr/2018 14:25:29] "GET
>> > /v1/admin/stacks/undercloud/2340cfb8-064d-4e4d-8096-89be7a3b2757
>> HTTP/1.1"
>> > 200 26955 0.463922
>> >
>> >
>> >
>> > On 12 April 2018 at 14:27, Adam Huffman <adam.huffman.lists at gmail.com>
>> > wrote:
>> >>
>> >> Thanks, a bit further now:
>> >>
>> >> 2018-04-12 13:25:23Z [undercloud.UndercloudServiceChain]:
>> >> CREATE_IN_PROGRESS state changed
>> >> 2018-04-12 13:25:24Z [undercloud.UndercloudServiceChain]:
>> >> CREATE_IN_PROGRESS Stack CREATE started
>> >> 2018-04-12 13:25:24Z
>> >> [undercloud.UndercloudServiceChain.LoggingConfiguration]:
>> CREATE_IN_PROGRESS
>> >> state changed
>> >> 2018-04-12 13:25:24Z [undercloud.UndercloudServiceChain.ServiceChain]:
>> >> CREATE_IN_PROGRESS state changed
>> >> 2018-04-12 13:25:26Z [undercloud.UndercloudServiceChain.ServiceChain]:
>> >> CREATE_FAILED StackValidationFailed: resources.ServiceChain: Property
>> >> error: resources[36].properties: Property DockerRabbitmqConfigImage not
>> >> assigned
>> >> 2018-04-12 13:25:26Z
>> >> [undercloud.UndercloudServiceChain.LoggingConfiguration]:
>> CREATE_FAILED
>> >> CREATE aborted
>> >> 2018-04-12 13:25:26Z [undercloud.UndercloudServiceChain]:
>> CREATE_FAILED
>> >> Resource CREATE failed: StackValidationFailed: resources.ServiceChain:
>> >> Property error: ServiceChain.resources[36].properties: Property
>> >> DockerRabbitmqConfigImage not assigned
>> >> 2018-04-12 13:25:27Z [undercloud.UndercloudServiceChain]:
>> CREATE_FAILED
>> >> StackValidationFailed:
>> >> resources.UndercloudServiceChain.resources.ServiceChain: Property
>> error:
>> >> ServiceChain.resources[36].properties: Property
>> DockerRabbitmqConfigImage
>> >> not assigned
>> >> 2018-04-12 13:25:27Z [undercloud]: CREATE_FAILED Resource CREATE
>> failed:
>> >> StackValidationFailed:
>> >> resources.UndercloudServiceChain.resources.ServiceChain: Property
>> error:
>> >> ServiceChain.resources[36].properties: Property
>> DockerRabbitmqConfigImage
>> >> not assigned
>> >> Exception: Stack create failed
>> >> ['Traceback (most recent call last):\n', ' File
>> >> "/usr/lib/python2.7/site-packages/tripleoclient/v1/underclou
>> d_deploy.py",
>> >> line 511, in take_action\n parsed_args.timeout)\n', ' File
>> >> "/usr/lib/python2.7/site-packages/tripleoclient/v1/underclou
>> d_deploy.py",
>> >> line 346, in _wait_for_heat_complete\n raise Exception(\'Stack
>> create
>> >> failed\')\n', 'Exception: Stack create failed\n']
>> >> ERROR: Heat log files: /var/tmp/undercloud/undercloud_deploy-KVv2ms
>> >>
>> >>
>> >>
>> >> On 12 April 2018 at 13:56, Thomas Herve <therve at redhat.com> wrote:
>> >>>
>> >>> On Thu, Apr 12, 2018 at 1:50 PM, Adam Huffman
>> >>> <adam.huffman.lists at gmail.com> wrote:
>> >>> > I've been following the guide at:
>> >>> >
>> >>> > http://tripleo.org/containers_deployment/undercloud.html
>> >>> >
>> >>> > to test a containerised deployment.
>> >>> >
>> >>> > Here's what I have installed:
>> >>> >
>> >>> > [stack at tripleo000 containers-2018-04-12]$ rpm -q
>> python-tripleoclient
>> >>> > python2-openstackclient openstack-heat-agents docker openvswitch
>> >>> > python-tripleoclient-9.2.1-0.20180410161616.1c1af2a.el7.cent
>> os.noarch
>> >>> >
>> >>> > python2-openstackclient-3.14.1-0.20180402185834.a3caf7b.el7.
>> centos.noarch
>> >>> > openstack-heat-agents-1.5.4-0.20180308153305.ecf43c7.el7.cen
>> tos.noarch
>> >>> > docker-1.13.1-53.git774336d.el7.centos.x86_64
>> >>> > openvswitch-2.9.0-3.el7.x86_64
>> >>> >
>> >>> > [stack at tripleo000 containers-2018-04-12]$ rpm -q
>> python-tripleoclient
>> >>> > python2-openstackclient openstack-heat-agents docker openvswitch
>> >>> > python-tripleoclient-9.2.1-0.20180410161616.1c1af2a.el7.cent
>> os.noarch
>> >>> >
>> >>> > python2-openstackclient-3.14.1-0.20180402185834.a3caf7b.el7.
>> centos.noarch
>> >>> > openstack-heat-agents-1.5.4-0.20180308153305.ecf43c7.el7.cen
>> tos.noarch
>> >>> > docker-1.13.1-53.git774336d.el7.centos.x86_64
>> >>> > openvswitch-2.9.0-3.el7.x86_64
>> >>> >
>> >>> > and here are the configured yum repos:
>> >>> >
>> >>> > repo id
>> >>> > repo name
>> >>> > status
>> >>> > base/7/x86_64
>> >>> > CentOS-7 - Base
>> >>> > dell-system-update_dependent/7/x86_64
>> >>> > dell-system-update_dependent
>> >>> > dell-system-update_independent
>> >>> > dell-system-update_independent
>> >>> > delorean-queens
>> >>> >
>> >>> > delorean-openstack-kuryr-kubernetes-c394b695dfbf823de626276a
>> 61069089ccdb0aca
>> >>> > delorean-queens-testing
>> >>> > dlrn-queens-testing
>> >>> > extras/7/x86_64
>> >>> > CentOS-7 - Extras
>> >>> > rdo-qemu-ev/x86_64
>> >>> > RDO CentOS-7 - QEMU EV
>> >>> > tripleo-centos-ceph-luminous
>> >>> > tripleo-centos-ceph-luminous
>> >>> > updates/7/x86_64
>> >>> > CentOS-7 - Updates
>> >>> >
>> >>> > Here's the attempted installation:
>> >>> >
>> >>> > export THT_ROOT=/usr/share/openstack-tripleo-heat-templates/
>> >>> > [stack at tripleo000 containers-2018-04-12]$ !40
>> >>> > sudo openstack undercloud deploy --templates=$THT_ROOT
>> >>> > --local-ip=192.168.24.1 --keep-running -e
>> >>> > $THT_ROOT/environments/services-docker/ironic.yaml -e
>> >>> > $THT_ROOT/environments/services-docker/mistral.yaml -e
>> >>> > $THT_ROOT/environments/services-docker/zaqar.yaml -e
>> >>> > $THT_ROOT/environments/docker.yaml -e
>> >>> > $THT_ROOT/environments/mongodb-nojournal.yaml -e
>> >>> > $HOME/src/containers-2018-04-12/custom.yaml
>> >>> >
>> >>> > Undercloud deploy is an experimental developer focused feature that
>> >>> > does not
>> >>> > yet replace 'openstack undercloud install'.
>> >>> > Configuring puppet modules symlinks ...
>> >>> > Exception: list index out of range
>> >>> > ['Traceback (most recent call last):\n', ' File
>> >>> >
>> >>> > "/usr/lib/python2.7/site-packages/tripleoclient/v1/underclou
>> d_deploy.py",
>> >>> > line 502, in take_action\n orchestration_client =
>> >>> > self._launch_heat(parsed_args)\n', ' File
>> >>> >
>> >>> > "/usr/lib/python2.7/site-packages/tripleoclient/v1/underclou
>> d_deploy.py",
>> >>> > line 187, in _launch_heat\n parsed_args.heat_user)\n', ' File
>> >>> > "/usr/lib/python2.7/site-packages/tripleoclient/heat_launcher.py",
>> line
>> >>> > 306,
>> >>> > in __init__\n user)\n', ' File
>> >>> > "/usr/lib/python2.7/site-packages/tripleoclient/heat_launcher.py",
>> line
>> >>> > 170,
>> >>> > in __init__\n uid = int(self.get_heat_uid())\n', ' File
>> >>> > "/usr/lib/python2.7/site-packages/tripleoclient/heat_launcher.py",
>> line
>> >>> > 318,
>> >>> > in get_heat_uid\n return
>> >>> > p.communicate()[0].rstrip().split(\':\')[2]\n',
>> >>> > 'IndexError: list index out of range\n']
>> >>> > 'DeployUndercloud' object has no attribute 'heat_launch'
>> >>>
>> >>> Hi,
>> >>>
>> >>> I think the guide is missing heat. You need to have it installed as
>> >>> well prior to the deploy, that's probably what's missing (the
>> >>> deployment is failing when doing getent passwd heat, it needs the heat
>> >>> user).
>> >>>
>> >>> --
>> >>> Thomas
>> >>
>> >>
>> >
>> >
>> > _______________________________________________
>> > dev mailing list
>> > dev at lists.rdoproject.org
>> > http://lists.rdoproject.org/mailman/listinfo/dev
>> >
>> > To unsubscribe: dev-unsubscribe at lists.rdoproject.org
>> >
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rdoproject.org/pipermail/dev/attachments/20180412/da06b0cb/attachment-0001.html>
More information about the dev
mailing list