I'm having an issue during execution of "openstack-ansible setup-hosts.yml"
where all containers fail to start with the error message below about
/opt/container-setup.sh not existing.  The previous step which is supposed
to deploy that file does not seem to produce any errors.  I went onto the
compute host and checked the lxc filesystem and /opt is empty.

*openstack-ansible output:*

TASK [lxc_container_create : Drop container network file (interfaces)]
*********

TASK [lxc_container_create : Drop container network file (routes)]
*************

TASK [lxc_container_create : Drop container setup script]
**********************

TASK [lxc_container_create : Run container setup script]
***********************
fatal: [infra1_nova_conductor_container-cc6baf0b -> 10.0.4.140]: FAILED! =>
{"changed": false, "cmd": ["lxc-attach", "--name",
"infra1_nova_conductor_container-cc6baf0b", "--logfile",
"/var/log/lxc/lxc-infra1_nova_conductor_container-cc6baf0b.log",
"--logpriority", "DEBUG", "--", "/opt/container-setup.sh"], "delta":
"0:00:00.025387", "end": "2016-11-29 08:52:40.230437", "failed": true,
"failed_when_result": true, "rc": 255, "start": "2016-11-29
08:52:40.205050", "stderr": "lxc-attach: attach.c: lxc_attach_run_command:
1300 No such file or directory - failed to exec '/opt/container-setup.sh'",
"stdout": "", "stdout_lines": [], "warnings": []}

I went to the infra1 host and checked the log file in /var/log/lxc/ but
there's not much in there.
*/var/log/lxc/lxc-infra1_nova_conductor_container-cc6baf0b.log output:*
     lxc-attach 20161129085240.209 WARN     lxc_confile -
confile.c:config_pivotdir:1879 - lxc.pivotdir is ignored.  It will soon
become an error.
     lxc-attach 20161129085240.211 WARN     lxc_confile -
confile.c:config_pivotdir:1879 - lxc.pivotdir is ignored.  It will soon
become an error.
     lxc-attach 20161129085240.212 INFO     lxc_seccomp -
seccomp.c:parse_config_v2:402 - processing: .reject_force_umount  # comment
this to allow umount -f;  not recommended.
     lxc-attach 20161129085240.212 INFO     lxc_seccomp -
seccomp.c:parse_config_v2:567 - Adding native rule for reject_force_umount
action 0.
     lxc-attach 20161129085240.212 INFO     lxc_seccomp -
seccomp.c:do_resolve_add_rule:251 - Setting Seccomp rule to reject force
umounts.
     lxc-attach 20161129085240.212 INFO     lxc_seccomp -
seccomp.c:parse_config_v2:570 - Adding compat rule for reject_force_umount
action 0.
     lxc-attach 20161129085240.212 INFO     lxc_seccomp -
seccomp.c:do_resolve_add_rule:251 - Setting Seccomp rule to reject force
umounts.
     lxc-attach 20161129085240.212 INFO     lxc_seccomp -
seccomp.c:parse_config_v2:402 - processing: .[all].
     lxc-attach 20161129085240.212 INFO     lxc_seccomp -
seccomp.c:parse_config_v2:402 - processing: .kexec_load errno 1.
     lxc-attach 20161129085240.212 INFO     lxc_seccomp -
seccomp.c:parse_config_v2:567 - Adding native rule for kexec_load action
327681.
     lxc-attach 20161129085240.212 INFO     lxc_seccomp -
seccomp.c:parse_config_v2:570 - Adding compat rule for kexec_load action
327681.
     lxc-attach 20161129085240.212 INFO     lxc_seccomp -
seccomp.c:parse_config_v2:402 - processing: .open_by_handle_at errno 1.
     lxc-attach 20161129085240.212 INFO     lxc_seccomp -
seccomp.c:parse_config_v2:567 - Adding native rule for open_by_handle_at
action 327681.
     lxc-attach 20161129085240.212 INFO     lxc_seccomp -
seccomp.c:parse_config_v2:570 - Adding compat rule for open_by_handle_at
action 327681.
     lxc-attach 20161129085240.212 INFO     lxc_seccomp -
seccomp.c:parse_config_v2:402 - processing: .init_module errno 1.
     lxc-attach 20161129085240.212 INFO     lxc_seccomp -
seccomp.c:parse_config_v2:567 - Adding native rule for init_module action
327681.
     lxc-attach 20161129085240.212 INFO     lxc_seccomp -
seccomp.c:parse_config_v2:570 - Adding compat rule for init_module action
327681.
     lxc-attach 20161129085240.212 INFO     lxc_seccomp -
seccomp.c:parse_config_v2:402 - processing: .finit_module errno 1.
     lxc-attach 20161129085240.212 INFO     lxc_seccomp -
seccomp.c:parse_config_v2:567 - Adding native rule for finit_module action
327681.
     lxc-attach 20161129085240.212 INFO     lxc_seccomp -
seccomp.c:parse_config_v2:570 - Adding compat rule for finit_module action
327681.
     lxc-attach 20161129085240.212 INFO     lxc_seccomp -
seccomp.c:parse_config_v2:402 - processing: .delete_module errno 1.
     lxc-attach 20161129085240.212 INFO     lxc_seccomp -
seccomp.c:parse_config_v2:567 - Adding native rule for delete_module action
327681.
     lxc-attach 20161129085240.212 INFO     lxc_seccomp -
seccomp.c:parse_config_v2:570 - Adding compat rule for delete_module action
327681.
     lxc-attach 20161129085240.212 INFO     lxc_seccomp -
seccomp.c:parse_config_v2:580 - Merging in the compat Seccomp ctx into the
main one.
     lxc-attach 20161129135240.229 INFO     lxc_attach -
attach.c:lsm_set_label_at:158 - Set LSM label to: changeprofile
lxc-container-default-cgns.
     lxc-attach 20161129135240.229 ERROR    lxc_attach -
attach.c:lxc_attach_run_command:1300 - No such file or directory - failed
to exec '/opt/container-setup.sh'

Let me know if more information is needed.
Thanks,
J
_______________________________________________
OpenStack-operators mailing list
OpenStack-operators@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators

Reply via email to