使用keystone v3时Nova不支持

时间:2016-09-09 10:25:29

标签: ubuntu openstack keystone

我在devstack设置中使用keystone v3,我正在尝试删除nova实例,:

        from keystoneclient.v3 import client as keyclientv3
        from novaclient import client as nova_client
        from keystoneauth1 import session

        keystone= keyclientv3.Client(username="neutron",password="mysecret",
                        user_domain_name="default",
                        project_domain_name="default",
                        project_name="service",
                        auth_url='http://127.0.0.1:5000/v3/')

        token = keystone.auth_token

        sess = session.Session(auth=keystone, verify=False)

        nova = nova_client.Client(self.nova_version, auth_token=token,
                                  tenant_id=tenant_id,
                                  auth_url='http://127.0.0.1:5000/v3/',
                                  session=sess)
        nova.servers.delete(instance_id)

但我收到错误"无法找到资源。 (HTTP 404)"

0 个答案:

没有答案