1
0
mirror of https://github.com/gryf/openstack.git synced 2025-12-17 03:20:25 +01:00

Remove config_drive conversion as it was only used by Yahoo

This commit is contained in:
PTC
2018-11-07 15:12:32 -08:00
parent 875239ca08
commit 2d9b774bc1

View File

@@ -224,14 +224,6 @@ for comp in $components ; do
done done
done done
# Remove old endpoints (chef deploy will re-populate these with correct values) # Remove old endpoints (deployment will re-populate these with correct values)
mysql -u $db_user --password=$db_pass -h $db_host -e 'USE keystone; DELETE FROM endpoint;' mysql -u $db_user --password=$db_pass -h $db_host -e 'USE keystone; DELETE FROM endpoint;'
mysql -u $db_user --password=$db_pass -h $db_host -e 'USE keystone; DELETE FROM service;' mysql -u $db_user --password=$db_pass -h $db_host -e 'USE keystone; DELETE FROM service;'
# Remove invalid role assignments (missing user)
# Change legacy "config_drive" key to what is used upstream "configdrive"
# NOTE(jaypipes): This may take a multiple dozens of seconds on a table with
# tens of thousands of records
if [ "$baremetal" == 1 ]; then
mysql -u $db_user --password=$db_pass -h $db_host -e 'USE ironic; UPDATE nodes SET instance_info = REPLACE(instance_info, "\"config_drive\":", "\"configdrive\":");'
fi