Devstack Multi-node deployment fails with nova-docker compute node
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
devstack |
Invalid
|
Undecided
|
Ashish Billore |
Bug Description
While using Devstack for multi-node deployment with one (or may be more) nodes as docker compute node with nova-docker, the deployment on the compute node fails due to follwing
This error can be traced to following script and following line in the script where it attempts to import a Docker image to Glance and fails:
Script: /opt/stack/
Code:
echo "Checking default image for docker..."
if ! (glance image-show "$DEFAULT_
echo "Pulling $DOCKER_
docker pull $DOCKER_IMAGE_NAME
echo "Saving $DOCKER_IMAGE_NAME to glance..."
docker save $DOCKER_IMAGE_NAME | glance image-create --is-public=True --container-
fi
Now, to fix this issue, I added:
# AB:: Source the Openstack admin creds
source $TOP_DIR/openrc
echo "Checking default image for docker..."
if ! (glance image-show "$DEFAULT_
echo "Pulling $DOCKER_
docker pull $DOCKER_IMAGE_NAME
echo "Saving $DOCKER_IMAGE_NAME to glance..."
docker save $DOCKER_IMAGE_NAME | glance image-create --is-public=True --container-
fi
At this point it is able to contact glance on the controller node, however, it again fails here -->
DEBUG glance.
So, apparently devstack user cannot create "public" glance images remotely due to reduced permissions. Now to fix this, I updated it further:
# AB:: Source the Openstack admin creds
source $TOP_DIR/openrc
echo "Checking default image for docker..."
if ! (glance image-show "$DEFAULT_
echo "Pulling $DOCKER_
docker pull $DOCKER_IMAGE_NAME
echo "Saving $DOCKER_IMAGE_NAME to glance..."
# make image "private" else glance will be unhappy
docker save $DOCKER_IMAGE_NAME | glance image-create --is-public=False --container-
fi
With these Changes to the script I am able to proceed with multi-node devstack deployment with Docker-compute.
Attaching the modified script, please review and if looks fine, I'll commit it to master.
Changed in devstack: | |
assignee: | nobody → Ashish Billore (ashish.billore) |
This devstack bug was last updated over 180 days ago, as devstack
is a fast moving project and we'd like to get the tracker down to
currently actionable bugs, this is getting marked as Invalid. If the
issue still exists, please feel free to reopen it.