[RDO-Manager][Liberty] : openstack baremetal introspection bulk start causes "Internal server error" ( introspection fails) . Environment: ------------- instack-0.0.8-dev4.el7.centos.noarch instack-undercloud-2.1.3-dev219.el7.centos.noarch openstack-tripleo-puppet-elements-0.0.2-dev13.el7.centos.noarch openstack-tripleo-0.0.1-dev1769.el7.centos.noarch openstack-tripleo-heat-templates-0.8.7-dev249.el7.centos.noarch openstack-tripleo-image-elements-0.9.7-dev30.el7.centos.noarch Steps: ------ (1) Follow the guide to install liberty rdo-manager http://docs.openstack.org/developer/tripleo-docs/environments/virtual.html (2) Attempt openstack baremetal introspection bulk start Results: --------- openstack baremetal introspection bulk start Setting available nodes to manageable... Starting introspection of node: 52552cc6-4adb-4e57-a52d-469f0ac23cae Internal server error Workaround: ------------ Execute this command for each node ( in "ironic node-list") : ironic node-set-provision-state fc3c15be-0744-4b52-aad8-d4cc717b23cd provide ironic node-set-provision-state e8d20300-4257-4e45-9163-43679b264ac6 provide ironic node-set-provision-state 4e61ec9a-f5dd-4b45-a043-99dafaf3cf8d provide
The workaround in comment #0 allows the overcloud deployment to use the nodes without introspection. The allow introspection: 1. edit the /etc/ironic-inspector/inspector.conf file and make sure to add another '/' character after sqlite under [database], like below: [database] connection = sqlite:////var/lib/ironic-inspector/inspector.sqlite 2. sudo systemctl restart openstack-ironic-inspector.service 3. sudo ironic-inspector-dbsync --config-file /etc/ironic-inspector/inspector.conf upgrade
Fixed in latest liberty repo: http://trunk.rdoproject.org/liberty/centos7/current/
This was close but not quite right. Since we switched to using a service user and rootwrap for ironic-inspector, we need to create the database as that user. https://review.openstack.org/#/c/231656/ is the fix The workaround is to run: sudo chown ironic-inspector /var/lib/ironic-inspector/inspector.sqlite
Verified with the RDO GA bits : sudo yum install -y http://rdoproject.org/repos/openstack-liberty/rdo-release-liberty.rpm