Comment 4 for bug 958135

Revision history for this message
Kevin Jackson (kevin-linuxservices) wrote : Re: UnboundLocalError: local variable 'metadata_ref' referenced before assignment

Hi Joseph - I use the following

EC2_PUBLIC_URL="http://$ENDPOINT:8773/services/Cloud"
EC2_ADMIN_URL="http://$ENDPOINT:8773/services/Admin"
EC2_INTERNAL_URL=$EC2_PUBLIC_URL

This I was unsure of so could explain things:

I've tried:
keystone --token $SERVICE_TOKEN --endpoint $SERVICE_ENDPOINT service-create --name ec2 --type ec2 --description 'EC2 Service'
and
keystone --token $SERVICE_TOKEN --endpoint $SERVICE_ENDPOINT service-create --name ec2 --type compute --description 'EC2 Service'

(Both produce same err when using euca2ools)

Then I get the relevant IDs and produce the endpoints
keystone --token $SERVICE_TOKEN --endpoint $SERVICE_ENDPOINT endpoint-create --region nova --service_id $ID --publicurl $PUBLIC --adminurl $ADMIN --internalurl $INTERNAL