getting HTTP 400 error in NOVA compute

asked 2014-09-19 06:35:01 -0500

udeybansal gravatar image

Hello ,

I have installed openstack on Ubuntu 14.0.4 and getting the above mentioned error while executing commands (nova service-list , nova list) in NOVA , commands are working fine in Keystone and Glance (keystone user-list , glance image-list)

Attaching the debug output below

root@controller:/etc/keystone# nova --debug image-list REQ: curl -i 'http://controller:5000/v2.0/tokens' -X POST -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-novaclient" -d '{"auth": {"tenantName": "admin", "passwordCredentials": {"username": "admin", "password": "ubuntu"}}}' New session created for: ( http://controller:5000 ) INFO (connectionpool:258) Starting new HTTP connection (1): controller DEBUG (connectionpool:375) Setting read timeout to 600.0 DEBUG (connectionpool:415) "POST /v2.0/tokens HTTP/1.1" 200 3968 RESP: [200] CaseInsensitiveDict({'date': 'Thu, 18 Sep 2014 01:58:35 GMT', 'vary': 'X-Auth-Token', 'content-length': '3968', 'content-type': 'application/json', 'x-distribution': 'Ubuntu'}) RESP BODY: {"access": {"token": {"issued_at": "2014-09-18T01:58:34.902538", "expires": "2014-09-18T02:58:34Z", "id": "MIIHaAYJKoZIhvcNAQcCoIIHWTCCB1UCAQExDTALBglghkgBZQMEAgEwggW2Bgkqhki G9w0BBwGgggWnBIIFo3siYWNjZXNzIjogeyJ0b2tlbiI6IHsiaXNzdWVkX2F0IjogIjIwMTQtMD ktMThUMDE6NTg6MzQuOTAyNTM4IiwgImV4cGlyZXMiOiAiMjAxNC0wOS0xOFQwMjo1O DozNFoiLCAiaWQiOiAicGxhY2Vob2xkZXIiLCAidGVuYW50IjogeyJkZXNjcmlwdGlvbiI6ICJB ZG1pbiBUZW5hbnQiLCAiZW5hYmxlZCI6IHRydWUsICJpZCI6ICI0YjQ0MDI1YmFlNzg0Mzk zOTRjOWVlNjg1MzZjOGM0MyIsICJuYW1lIjogImFkbWluIn19LCAic2VydmljZUNhdGFsb2ciO iBbeyJlbmRwb2ludHMiOiBbeyJhZG1pblVSTCI6ICJodHRwOi8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mi4wIn1dLCAiZW5kcG9pbnRzX2xpbmtzIjog W10sICJ0eXBlIjogImlkZW50aXR5IiwgIm5hbWUiOiAia2V5c3RvbmUifV0sICJ1c2VyIjogeyJ1c2 VybmFtZSI6ICJhZG1pbiIsICJyb2xlc19saW5rcyI6IFtdLCAiaWQiOiAiMTBlNGI3YjIwNzgwNGZ iM2FmYTQ3YWUyYTAzNWIxOTciLCAicm9sZXMiOiBbeyJuYW1lIjogIl9tZW1iZXJfIn0sIHsib mFtZSI6ICJhZG1pbiJ9XSwgIm5hbWUiOiAiYWRtaW4ifSwgIm1ldGFkYXRhIjogeyJpc19hZG1p biI6IDAsICJyb2xlcyI6IFsiOWZlMmZmOWVlNDM4NGIxODk0YTkwODc4ZDNlOTJiYWIiLC AiM2U5YzA2Y2I3YWE3NGJjMTkyZTMxMmI1NjA2MWNkOTUiXX19fTGCAYUwggGBAgE BMFwwVzELMAkGA1UEBhMCVVMxDjAMBgNVBAgMBVVuc2V0MQ4wDAYDVQQHDA VVbnNldDEOMAwGA1UECgwFVW5zZXQxGDAWBgNVBAMMD3d3dy5leGFtcGxlLmNvbQI BATALBglghkgBZQMEAgEwDQYJKoZIhvcNAQEBBQAEggEAjxkPhTplwbZS1zKaeiUTMi4Y tZfl6Cba52pWBeA+GfxRShwB0fimq1kFKocYmPqIzeLxvUunhNoezDXVp8CiytEqJ+Z1CQnxV0 txj29xKPdMQcWBUttXBQl7MAnxyTyd3ORkV+ WZZpxpETh6mejaksVPtnF39pdtTdsMmI0gW2YD4cWilY+XMfxp0VgyD0+kT5nuxyEHel uQO8T7iqqdI7WhlU01XMKi6ugcqYnPpRy-Ibj3H79sRtsfZwWwO6bNc3noeFdBf+PaB-k21xqS45zKXI1AC9nNm3IU2QuSKtqsaTNn- yWoqynwCTg4BrplYhmPLtydpbY6jfZd8A-w==", "tenant": {"description": "Admin Tenant", "enabled": true, "id": "4b44025bae78439394c9ee68536c8c43", "name": "admin"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://controller:9292", "region": "regionOne", "internalURL": "http://controller:9292", "id": "dde1c27d547b48c585127fd7406d5f9b", "publicURL": "http://controller:9292"}], "endpoints_links": [], "type": "image", "name": "glance"}, {"endpoints": [{"adminURL": "http://controller:8774/v2/4b44025bae78439394c9ee68536c8c43", "region": "regionOne", "internalURL": "http://controller:8774/v2/4b44025bae78439394c9ee68536c8c43", "id": "5769f65f303f41b6b88436fe7fc70233", "publicURL": "http://controller:8774/v2/4b44025bae78439394c9ee68536c8c43"}], "endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints": [{"adminURL": "http://controller:35357/v2.0", "region": "regionOne", "internalURL": "http://controller:5000/v2.0", "id": "28545c66dc9c453cbf99fb0e2271138e", "publicURL": "http://controller:5000/v2.0"}], "endpoints_links": [], "type": "identity", "name": "keystone"}], "user": {"username": "admin", "roles_links": [], "id": "10e4b7b207804fb3afa47ae2a035b197", "roles": [{"name": "_member_"}, {"name": "admin"}], "name": "admin"}, "metadata": {"is_admin": 0, "roles": ["9fe2ff9ee4384b1894a90878d3e92bab", "3e9c06cb7aa74bc192e312b56061cd95"]}}} REQ: curl -i 'http://controller:8774/v2/4b44025bae78439394c9ee68536c8c43/images/detail' -X GET -H "X-Auth-Project-Id: admin" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: MIIHaAYJKoZIhvcNAQcCoIIHWTCCB1UCAQExDTALBglghkgBZQMEAgEwggW2BgkqhkiG 9w0BBwGgggWnBIIFo3siYWNjZXNzIjogeyJ0b2tlbiI6IHsiaXNzdWVkX2F0IjogIjIwMTQtMDkt MThUMDE6NTg6MzQuOTAyNTM4IiwgImV4cGlyZXMiOiAiMjAxNC0wOS0xOFQwMjo1OD ozNFoiLCAiaWQiOiAicGxhY2Vob2xkZXIiLCAidGVuYW50IjogeyJkZXNjcmlwdGlvbiI6ICJBZ G1pbiBUZW5hbnQiLCAiZW5hYmxlZCI6IHRydWUsICJpZCI6ICI0YjQ0MDI1YmFlNzg0Mzk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qynwCTg4BrplYhmPLtydpbY6jfZd8A-w==" New session created for: ( http://controller:8774 ) INFO (connectionpool:258) Starting new HTTP connection (1): controller DEBUG (connectionpool:375) Setting read timeout to 600.0 DEBUG (connectionpool:415) "GET /v2/4b44025bae78439394c9ee68536c8c43/images/detail HTTP/1.1" 400 2692 RESP: [400] CaseInsensitiveDict({'date': 'Thu, 18 Sep 2014 01:58:35 GMT', 'content-length': '2692', 'content-type': 'application/json; charset=UTF-8', 'x-compute-request-id': 'req-df565ff5-6711- 4c7c-ab20-7bf59da2b4d7'}) RESP BODY: {"badRequest": {"message": "Malformed request URL: URL's project_id '4b44025bae78439394c9ee68536c8c43' doesn't match Context's project_id 'MIIHaAYJKoZIhvcNAQcCoIIHWTCCB1UCAQExDTALBglghkgBZQMEAgEwggW2BgkqhkiG 9w0BBwGgggWnBIIFo3siYWNjZXNzIjogeyJ0b2tlbiI6IHsiaXNzdWVkX2F0IjogIjIwMTQtMDkt MThUMDE6NTg6MzQuOTAyNTM4IiwgImV4cGlyZXMiOiAiMjAxNC0wOS0xOFQwMjo1OD ozNFoiLCAiaWQiOiAicGxhY2Vob2xkZXIiLCAidGVuYW50IjogeyJkZXNjcmlwdGlvbiI6ICJBZ G1pbiBUZW5hbnQiLCAiZW5hYmxlZCI6IHRydWUsICJpZCI6ICI0YjQ0MDI1YmFlNzg0Mzkz OTRjOWVlNjg1MzZjOGM0MyIsICJuYW1lIjogImFkbWluIn19LCAic2VydmljZUNhdGFsb2ciOi BbeyJlbmRwb2ludHMiOiBbeyJhZG1pblVSTCI6ICJodHRwOi8vY29udHJvbGxlcjo5MjkyIiwgInJ lZ2lvbiI6ICJyZWdpb25PbmUiLCAiaW50ZXJuYWxVUkwiOiAiaHR0cDovL2NvbnRyb2xsZXI6 OTI5MiIsICJpZCI6ICJkZGUxYzI3ZDU0N2I0OGM1ODUxMjdmZDc0MDZkNWY5YiIsICJwd WJsaWNVUkwiOiAiaHR0cDovL2NvbnRyb2xsZXI6OTI5MiJ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sZXMiOiBbeyJuYW1lIjogIl9tZW1iZXJfIn0sIHsib mFtZSI6ICJhZG1pbiJ9XSwgIm5hbWUiOiAiYWRtaW4ifSwgIm1ldGFkYXRhIjogeyJpc19hZG1p biI6IDAsICJyb2xlcyI6IFsiOWZlMmZmOWVlNDM4NGIxODk0YTkwODc4ZDNlOTJiYWIiLC AiM2U5YzA2Y2I3YWE3NGJjMTkyZTMxMmI1NjA2MWNkOTUiXX19fTGCAYUwggGBAgE BMFwwVzELMAkGA1UEBhMCVVMxDjAMBgNVBAgMBVVuc2V0MQ4wDAYDVQQHDA VVbnNldDEOMAwGA1UECgwFVW5zZXQxGDAWBgNVBAMMD3d3dy5leGFtcGxlLmNvbQI BATALBglghkgBZQMEAgEwDQYJKoZIhvcNAQEBBQAEggEAjxkPhTplwbZS1zKaeiUTMi4Y tZfl6Cba52pWBeA+GfxRShwB0fimq1kFKocYmPqIzeLxvUunhNoezDXVp8CiytEqJ+Z1CQnxV0 txj29xKPdMQcWBUttXBQl7MAnxyTyd3ORkV+ WZZpxpETh6mejaksVPtnF39pdtTdsMmI0gW2YD4cWilY+XMfxp0VgyD0+kT5nuxyEHel uQO8T7iqqdI7WhlU01XMKi6ugcqYnPpRy-Ibj3H79sRtsfZwWwO6bNc3noeFdBf+PaB-k21xqS45zKXI1AC9nNm3IU2QuSKtqsaTNn- yWoqynwCTg4BrplYhmPLtydpbY6jfZd8A-w=='", "code": 400}} DEBUG (shell:777) Malformed request URL: URL's project_id '4b44025bae78439394c9ee68536c8c43' doesn't match Context ... (more)

edit retag flag offensive close merge delete