[Openstack] MAGNUM - unable to create a magnum template

kamalakannan sanjeevan chirukamalakannan at gmail.com
Fri Sep 30 10:34:55 UTC 2016


Hi ,

Can anyone have a look at the logs and help me out.

I am using python-magnumclient -2.3.0 . along with magnum installed on
ubuntu 14.04 with Mitaka

CINDER VOLUMES
-----------------------------
root at VFSR1:/opt/mesos_image# pvs
  PV         VG             Fmt  Attr PSize   PFree
  /dev/loop2 cinder-volumes lvm2 a--  250.00g 213.00g
  /dev/sda3  ubuntu-vg      lvm2 a--    3.64t      0
root at VFSR1:/opt/mesos_image# vgs
  VG             #PV #LV #SN Attr   VSize   VFree
  cinder-volumes   1   7   1 wz--n- 250.00g 213.00g
  ubuntu-vg        1   2   0 wz--n-   3.64t      0


root at VFSR1:/opt/mesos_image# openstack image list
+--------------------------------------+----------------------+--------+
| ID                                   | Name                 | Status |
+--------------------------------------+----------------------+--------+
| f9acd880-f50f-493a-b6ed-46620b7b3481 | ubuntu-mesos         | active |
| 94ee6d6e-93fa-47b2-844f-2d8d2ad1a788 | ubuntu-14.04.3-mesos | active |
| affb50c2-ca04-41fa-bf73-48ae526d2b15 | fedora-atomic-latest | active |
| c1c8e84e-12ba-4b05-b382-e57850e5dd6d | cirros               | active |
+--------------------------------------+----------------------+--------+
root at VFSR1:/opt/mesos_image# glance -v image-list
+--------------------------------------+----------------------+-------------+------------------+-----------+--------+----------------------------------+
| ID                                   | Name                 | Disk_format
| Container_format | Size      | Status | Owner                            |
+--------------------------------------+----------------------+-------------+------------------+-----------+--------+----------------------------------+
| c1c8e84e-12ba-4b05-b382-e57850e5dd6d | cirros               | qcow2
| bare             | 13287936  | active | 4db51f28e56742a6b62333cdd7ec890d |
| affb50c2-ca04-41fa-bf73-48ae526d2b15 | fedora-atomic-latest | qcow2
| bare             | 507928064 | active | 4db51f28e56742a6b62333cdd7ec890d |
| 94ee6d6e-93fa-47b2-844f-2d8d2ad1a788 | ubuntu-14.04.3-mesos | qcow2
| bare             | 753616384 | active | 4db51f28e56742a6b62333cdd7ec890d |
| f9acd880-f50f-493a-b6ed-46620b7b3481 | ubuntu-mesos         | qcow2
| bare             | 753616384 | active | 4db51f28e56742a6b62333cdd7ec890d |
+--------------------------------------+----------------------+-------------+------------------+-----------+--------+----------------------------------+
root at VFSR1:/opt/mesos_image# openstack keypair list
+--------+-------------------------------------------------+
| Name   | Fingerprint                                     |
+--------+-------------------------------------------------+
| mykey  | f8:7b:3a:df:1d:eb:b3:12:97:d5:7f:b2:bd:af:77:86 |
| mykey1 | be:eb:0e:05:73:5f:59:5c:07:c4:26:d7:18:98:d9:d5 |
+--------+-------------------------------------------------+
root at VFSR1:/opt/mesos_image# openstack flavor list
+----+-----------+-------+------+-----------+-------+-----------+
| ID | Name      |   RAM | Disk | Ephemeral | VCPUs | Is Public |
+----+-----------+-------+------+-----------+-------+-----------+
| 1  | m1.tiny   |   512 |    1 |         0 |     1 | True      |
| 2  | m1.small  |  2048 |   20 |         0 |     1 | True      |
| 3  | m1.medium |  4096 |   40 |         0 |     2 | True      |
| 4  | m1.large  |  8192 |   80 |         0 |     4 | True      |
| 5  | m1.xlarge | 16384 |  160 |         0 |     8 | True      |
+----+-----------+-------+------+-----------+-------+-----------+
root at VFSR1:/opt/mesos_image# openstack network list
+--------------------------------------+-------------------------------------------------------+--------------------------------------+
| ID                                   |
Name                                                  |
Subnets                              |
+--------------------------------------+-------------------------------------------------------+--------------------------------------+
| 2241a192-589c-48ce-ac31-bd133c02d15b |
public                                                |
58a123cb-37a3-457d-ad23-350fab00cab1 |
| baeb67e9-0612-45cf-bb8e-7945e20bfba7 |
private                                               |
52787572-803c-4688-b3b4-a747c3e73e51 |
| 61d1cae1-f270-41cb-969c-08aca208f5a9 |
public1                                               |
839dcf6c-97cd-4ed3-b241-e29079aff206 |
| e3f63530-2ddc-44bd-ad9b-0c9002ce6766 |
private                                               |
aecb2758-ced7-4d43-8ab5-5d0f38dc68d1 |
| a91b3943-ac8b-41ca-9767-ad9cf2c1dc60 |
swarm-cluster-zhxyvth46o5c-fixed_network-xaz6nx43ec5e |
61789da1-17c9-431e-b728-22c4b923fd53 |
+--------------------------------------+-------------------------------------------------------+--------------------------------------+

MAGNUM command

root at VFSR1:/var/log/magnum#
/opt/python-magnumclient/.magnumclient-env/bin/magnum service-list
+----+-----------------+------------------+-------+----------+-----------------+---------------------------+---------------------------+
| id | host            | binary           | state | disabled |
disabled_reason | created_at                | updated_at                |
+----+-----------------+------------------+-------+----------+-----------------+---------------------------+---------------------------+
| 1  | VFSR1.svcmgr.io | magnum-conductor | up    |          |
-               | 2016-09-30T05:24:19+00:00 | 2016-09-30T09:58:17+00:00 |
+----+-----------------+------------------+-------+----------+-----------------+---------------------------+---------------------------+



root at VFSR1:/opt/mesos_image#
/opt/python-magnumclient/.magnumclient-env/bin/magnum
cluster-template-create --name mesos-cluster-template --image-id
ubuntu-mesos --keypair-id mykey --external-network-id public
--dns-nameserver 172.27.10.76 --flavor-id m1.small --coe mesos
ERROR: Method Not Allowed (HTTP 405) (Request-ID:
req-bb2bd994-7453-44e7-aa73-66b4fafa8796)
root at VFSR1:/opt/mesos_image#
/opt/python-magnumclient/.magnumclient-env/bin/magnum --debug
cluster-template-create --name mesos-cluster-template --image-id
ubuntu-mesos --keypair-id mykey --external-network-id public
--dns-nameserver 172.27.10.76 --flavor-id m1.small --coe mesos
DEBUG (extension:157) found extension EntryPoint.parse('v2token =
keystoneauth1.loading._plugins.identity.v2:Token')
DEBUG (extension:157) found extension EntryPoint.parse('v3oauth1 =
keystoneauth1.extras.oauth1._loading:V3OAuth1')
DEBUG (extension:157) found extension EntryPoint.parse('admin_token =
keystoneauth1.loading._plugins.admin_token:AdminToken')
DEBUG (extension:157) found extension EntryPoint.parse('v3oidcauthcode =
keystoneauth1.loading._plugins.identity.v3:OpenIDConnectAuthorizationCode')
DEBUG (extension:157) found extension EntryPoint.parse('v2password =
keystoneauth1.loading._plugins.identity.v2:Password')
DEBUG (extension:157) found extension EntryPoint.parse('v3samlpassword =
keystoneauth1.extras._saml2._loading:Saml2Password')
DEBUG (extension:157) found extension EntryPoint.parse('v3password =
keystoneauth1.loading._plugins.identity.v3:Password')
DEBUG (extension:157) found extension EntryPoint.parse('v3oidcaccesstoken =
keystoneauth1.loading._plugins.identity.v3:OpenIDConnectAccessToken')
DEBUG (extension:157) found extension EntryPoint.parse('v3oidcpassword =
keystoneauth1.loading._plugins.identity.v3:OpenIDConnectPassword')
DEBUG (extension:157) found extension EntryPoint.parse('v3kerberos =
keystoneauth1.extras.kerberos._loading:Kerberos')
DEBUG (extension:157) found extension EntryPoint.parse('token =
keystoneauth1.loading._plugins.identity.generic:Token')
DEBUG (extension:157) found extension
EntryPoint.parse('v3oidcclientcredentials =
keystoneauth1.loading._plugins.identity.v3:OpenIDConnectClientCredentials')
DEBUG (extension:157) found extension EntryPoint.parse('v3tokenlessauth =
keystoneauth1.loading._plugins.identity.v3:TokenlessAuth')
DEBUG (extension:157) found extension EntryPoint.parse('v3token =
keystoneauth1.loading._plugins.identity.v3:Token')
DEBUG (extension:157) found extension EntryPoint.parse('v3totp =
keystoneauth1.loading._plugins.identity.v3:TOTP')
DEBUG (extension:157) found extension EntryPoint.parse('password =
keystoneauth1.loading._plugins.identity.generic:Password')
DEBUG (extension:157) found extension EntryPoint.parse('v3fedkerb =
keystoneauth1.extras.kerberos._loading:MappedKerberos')
DEBUG (session:337) REQ: curl -g -i -X GET http://VFSR1:35357/v3 -H
"Accept: application/json" -H "User-Agent: magnum keystoneauth1/2.12.1
python-requests/2.11.1 CPython/2.7.6"
INFO (connectionpool:214) Starting new HTTP connection (1): vfsr1
DEBUG (connectionpool:401) "GET /v3 HTTP/1.1" 200 245
DEBUG (session:366) RESP: [200] Date: Fri, 30 Sep 2016 10:15:11 GMT Server:
Apache/2.4.7 (Ubuntu) Vary: X-Auth-Token X-Distribution: Ubuntu
x-openstack-request-id: req-560a5d64-5b95-4a4c-a3ad-ac3f7e040b1d
Content-Length: 245 Keep-Alive: timeout=5, max=100 Connection: Keep-Alive
Content-Type: application/json
RESP BODY: {"version": {"status": "stable", "updated":
"2016-04-04T00:00:00Z", "media-types": [{"base": "application/json",
"type": "application/vnd.openstack.identity-v3+json"}], "id": "v3.6",
"links": [{"href": "http://vfsr1:35357/v3/", "rel": "self"}]}}

DEBUG (base:165) Making authentication request to
http://vfsr1:35357/v3/auth/tokens
DEBUG (connectionpool:401) "POST /v3/auth/tokens HTTP/1.1" 201 5791
DEBUG (base:170) {"token": {"methods": ["password"], "roles": [{"id":
"20b84b42947e4605979a1616df15b1f9", "name": "admin"}], "expires_at":
"2016-09-30T11:15:11.706358Z", "project": {"domain": {"id":
"3eb00003f30847e6be79f1f7b1295276", "name": "default"}, "id":
"4db51f28e56742a6b62333cdd7ec890d", "name": "admin"}, "catalog":
[{"endpoints": [{"url": "http://VFSR1:8000/v1", "interface": "internal",
"region": "RegionOne", "region_id": "RegionOne", "id":
"4159e4f0becf45e5b22e0d7f79a3e8e1"}, {"url": "http://VFSR1:8000/v1",
"interface": "public", "region": "RegionOne", "region_id": "RegionOne",
"id": "939431700edc44fa9ba6178f65f4770b"}, {"url": "http://VFSR1:8000/v1",
"interface": "internal", "region": "RegionOne", "region_id": "RegionOne",
"id": "da519a3218374c0f9beeeaffb9dc183c"}], "type": "cloudformation", "id":
"07a812778ce94168a12436b0b3ec9265", "name": "heat-cfn"}, {"endpoints":
[{"url": "http://VFSR1:8776/v1/4db51f28e56742a6b62333cdd7ec890d",
"interface": "admin", "region": "RegionOne", "region_id": "RegionOne",
"id": "7e23305b957a40aebdb89ccec9fd247a"}, {"url": "
http://VFSR1:8776/v1/4db51f28e56742a6b62333cdd7ec890d", "interface":
"internal", "region": "RegionOne", "region_id": "RegionOne", "id":
"84a255caa89f423e956882eab99b8926"}, {"url": "
http://VFSR1:8776/v1/4db51f28e56742a6b62333cdd7ec890d", "interface":
"public", "region": "RegionOne", "region_id": "RegionOne", "id":
"85e21af71ca648b590db6428ab7c3b97"}], "type": "volume", "id":
"211229f855b449d69460c1f63f2ac24f", "name": "cinder"}, {"endpoints":
[{"url": "http://VFSR1:8776/v2/4db51f28e56742a6b62333cdd7ec890d",
"interface": "internal", "region": "RegionOne", "region_id": "RegionOne",
"id": "22a08265fd164d509efc54ae4046f6ac"}, {"url": "
http://VFSR1:8776/v2/4db51f28e56742a6b62333cdd7ec890d", "interface":
"public", "region": "RegionOne", "region_id": "RegionOne", "id":
"89bad1f8756c4b68a9cd3b9d19beab65"}, {"url": "
http://VFSR1:8776/v2/4db51f28e56742a6b62333cdd7ec890d", "interface":
"admin", "region": "RegionOne", "region_id": "RegionOne", "id":
"c1276098101647b483e1d5fe7627c2cd"}], "type": "volumev2", "id":
"42f8cb97e4da4ed2b417aeb3c2b0a1ed", "name": "cinderv2"}, {"endpoints":
[{"url": "http://VFSR1:35357/v3", "interface": "admin", "region":
"RegionOne", "region_id": "RegionOne", "id":
"2e515fa624534b7e991bd7629bb99add"}, {"url": "http://VFSR1:5000/v3",
"interface": "public", "region": "RegionOne", "region_id": "RegionOne",
"id": "75edc1fdbace46a4832de17e4104c8d4"}, {"url": "http://VFSR1:5000/v3",
"interface": "internal", "region": "RegionOne", "region_id": "RegionOne",
"id": "f4c49c33c35f4107ad318ab122a494db"}], "type": "identity", "id":
"734adc8737a147889b6d4d9b84a2e53e", "name": "keystone"}, {"endpoints":
[{"url": "http://VFSR1:8774/v2.1/4db51f28e56742a6b62333cdd7ec890d",
"interface": "admin", "region": "RegionOne", "region_id": "RegionOne",
"id": "5d863fea75224f8e975de30b685720aa"}, {"url": "
http://VFSR1:8774/v2.1/4db51f28e56742a6b62333cdd7ec890d", "interface":
"public", "region": "RegionOne", "region_id": "RegionOne", "id":
"d07e368fe2ec46eda4308462ec0a17c6"}, {"url": "
http://VFSR1:8774/v2.1/4db51f28e56742a6b62333cdd7ec890d", "interface":
"internal", "region": "RegionOne", "region_id": "RegionOne", "id":
"feaf2d955112493695fc37dd6487852b"}], "type": "compute", "id":
"758ee85faf24404bb07a72f5d0230f4a", "name": "nova"}, {"endpoints": [{"url":
"http://VFSR1:9511/v1", "interface": "public", "region": "RegionOne",
"region_id": "RegionOne", "id": "38a55b4f0ba148b8a373289bc99a759b"},
{"url": "http://VFSR1:9511/v1", "interface": "admin", "region":
"RegionOne", "region_id": "RegionOne", "id":
"3f57223d4d9a4c55adb6269903e7d54c"}, {"url": "http://VFSR1:9511/v1",
"interface": "internal", "region": "RegionOne", "region_id": "RegionOne",
"id": "403894a2863740b7b378f834dc5e1c94"}], "type": "container-infra",
"id": "89eef987c8d34793a519b732c5031277", "name": "magnum"}, {"endpoints":
[{"url": "http://VFSR1:9292", "interface": "admin", "region": "RegionOne",
"region_id": "RegionOne", "id": "0d5f2dc981e94c348cc7a16ddea9302d"},
{"url": "http://VFSR1:9292", "interface": "internal", "region":
"RegionOne", "region_id": "RegionOne", "id":
"6d7a7585dc1541ffbb1eb37d05549376"}, {"url": "http://VFSR1:9292",
"interface": "public", "region": "RegionOne", "region_id": "RegionOne",
"id": "f21462af5bfc450e8ee3038f6a3744e4"}], "type": "image", "id":
"b27c5b3779744f239675e8f990245e2b", "name": "glance"}, {"endpoints":
[{"url": "http://VFSR1:9696", "interface": "admin", "region": "RegionOne",
"region_id": "RegionOne", "id": "4f69c5610b594fed811233da612540d9"},
{"url": "http://VFSR1:9696", "interface": "public", "region": "RegionOne",
"region_id": "RegionOne", "id": "c6c62f290a074bf2987e20c2349fd41a"},
{"url": "http://VFSR1:9696", "interface": "internal", "region":
"RegionOne", "region_id": "RegionOne", "id":
"de6d308a61774c43a84eee665d379227"}], "type": "network", "id":
"c33e3e2572e345f2bdf037cb8fc3aaf1", "name": "neutron"}, {"endpoints":
[{"url": "http://VFSR1:8004/v1/4db51f28e56742a6b62333cdd7ec890d",
"interface": "admin", "region": "RegionOne", "region_id": "RegionOne",
"id": "614f00d7df0f4f13931d4c589b7cc342"}, {"url": "
http://VFSR1:8004/v1/4db51f28e56742a6b62333cdd7ec890d", "interface":
"internal", "region": "RegionOne", "region_id": "RegionOne", "id":
"cae0b628063645b2b29e4e2a7af4d63b"}, {"url": "
http://VFSR1:8004/v1/4db51f28e56742a6b62333cdd7ec890d", "interface":
"public", "region": "RegionOne", "region_id": "RegionOne", "id":
"d21e8bbcc97c40f48940bb106505eeb8"}], "type": "orchestration", "id":
"d763c396741747d6bceae777307e1432", "name": "heat"}], "user": {"domain":
{"id": "3eb00003f30847e6be79f1f7b1295276", "name": "default"}, "id":
"3bb731e1886347a19e90c06185be8a9c", "name": "admin"}, "audit_ids":
["BK5DedQERwC-k0-9tutp2Q"], "issued_at": "2016-09-30T10:15:11.000000Z"}}
DEBUG (session:337) REQ: curl -g -i -X POST
http://VFSR1:9511/v1/clustertemplates -H "OpenStack-API-Version:
container-infra latest" -H "X-Auth-Token:
{SHA1}1ec170abc088b6173e78d9dd29199f685d79f30f" -H "Content-Type:
application/json" -H "Accept: application/json" -H "User-Agent: None" -d
'{"labels": {}, "floating_ip_enabled": true, "fixed_subnet": null,
"master_flavor_id": null, "no_proxy": null, "https_proxy": null,
"tls_disabled": false, "keypair_id": "mykey", "public": false,
"http_proxy": null, "docker_volume_size": null, "server_type": "vm",
"external_network_id": "public", "image_id": "ubuntu-mesos",
"volume_driver": null, "registry_enabled": false, "docker_storage_driver":
"devicemapper", "name": "mesos-cluster-template", "network_driver": null,
"fixed_network": null, "coe": "mesos", "flavor_id": "m1.small",
"master_lb_enabled": false, "dns_nameserver": "172.27.10.76"}'
INFO (connectionpool:214) Starting new HTTP connection (1): vfsr1
DEBUG (connectionpool:401) "POST /v1/clustertemplates HTTP/1.1" 405 117
DEBUG (session:366) RESP: [405] Date: Fri, 30 Sep 2016 10:15:11 GMT Server:
WSGIServer/0.1 Python/2.7.6 Allow: GET Content-Type: application/json
Content-Length: 117 x-openstack-request-id:
req-f9354287-afa1-46bd-af69-f4a20f9611b3
RESP BODY: {"errors": [{"status": 405, "code": "", "links": [], "title":
"Method Not Allowed", "detail": "", "request_id": ""}]}

DEBUG (shell:694) Method Not Allowed (HTTP 405) (Request-ID:
req-f9354287-afa1-46bd-af69-f4a20f9611b3)
Traceback (most recent call last):
  File
"/opt/python-magnumclient/.magnumclient-env/local/lib/python2.7/site-packages/magnumclient/shell.py",
line 691, in main
    OpenStackMagnumShell().main(map(encodeutils.safe_decode, sys.argv[1:]))
  File
"/opt/python-magnumclient/.magnumclient-env/local/lib/python2.7/site-packages/magnumclient/shell.py",
line 633, in main
    args.func(self.cs, args)
  File
"/opt/python-magnumclient/.magnumclient-env/local/lib/python2.7/site-packages/magnumclient/v1/cluster_templates_shell.py",
line 150, in do_cluster_template_create
    cluster_template = cs.cluster_templates.create(**opts)
  File
"/opt/python-magnumclient/.magnumclient-env/local/lib/python2.7/site-packages/magnumclient/v1/basemodels.py",
line 107, in create
    return self._create(self._path(), new)
  File
"/opt/python-magnumclient/.magnumclient-env/local/lib/python2.7/site-packages/magnumclient/common/base.py",
line 49, in _create
    resp, body = self.api.json_request('POST', url, body=body)
  File
"/opt/python-magnumclient/.magnumclient-env/local/lib/python2.7/site-packages/magnumclient/common/httpclient.py",
line 366, in json_request
    resp = self._http_request(url, method, **kwargs)
  File
"/opt/python-magnumclient/.magnumclient-env/local/lib/python2.7/site-packages/magnumclient/common/httpclient.py",
line 350, in _http_request
    error_json.get('debuginfo'), method, url)
MethodNotAllowed: Method Not Allowed (HTTP 405) (Request-ID:
req-f9354287-afa1-46bd-af69-f4a20f9611b3)
ERROR: Method Not Allowed (HTTP 405) (Request-ID:
req-f9354287-afa1-46bd-af69-f4a20f9611b3)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20160930/8fd5a48a/attachment.html>


More information about the Openstack mailing list