Ask Your Question

humankind135's profile - activity

2017-02-28 11:35:52 -0600 received badge  Popular Question (source)
2016-10-21 04:21:16 -0600 commented question Ldap multiple user_tree_dn

Petar, I'm afraid not directly. I stopped using ldap so its not an issue for me anymore.

2016-10-20 02:19:02 -0600 received badge  Editor (source)
2016-10-20 02:18:14 -0600 asked a question AttributeError: type object 'NovaObjectRegistry' has no attribute 'register_notification'

Hi All

Thanks in advance for any help, I am in the process of upgrading liberty to newton and I got stuck on nova during an upgrade with the compute_node table, so I have stopped off at mitaka for nova and my controller node is fine but on my compute node when I try and start nova-compute I get:

Oct 20 08:10:11 compute1 nova-compute[5699]: Traceback (most recent call last):
Oct 20 08:10:11 compute1 nova-compute[5699]: File "/opt/nova-mitaka/bin/nova-compute", line 6, in <module>
Oct 20 08:10:11 compute1 nova-compute[5699]: from nova.cmd.compute import main
Oct 20 08:10:11 compute1 nova-compute[5699]: File "/opt/nova-mitaka/local/lib/python2.7/site-packages/nova/cmd/compute.py", line 25, in <module>
Oct 20 08:10:11 compute1 nova-compute[5699]: from nova.conductor import rpcapi as conductor_rpcapi
Oct 20 08:10:11 compute1 nova-compute[5699]: File "/opt/nova-mitaka/local/lib/python2.7/site-packages/nova/conductor/__init__.py", line 16, in <module>
Oct 20 08:10:11 compute1 nova-compute[5699]: from nova.conductor import api as conductor_api
Oct 20 08:10:11 compute1 nova-compute[5699]: File "/opt/nova-mitaka/local/lib/python2.7/site-packages/nova/conductor/api.py", line 22, in <module>
Oct 20 08:10:11 compute1 nova-compute[5699]: from nova.conductor import manager
Oct 20 08:10:11 compute1 nova-compute[5699]: File "/opt/nova-mitaka/local/lib/python2.7/site-packages/nova/conductor/manager.py", line 28, in <module>
Oct 20 08:10:11 compute1 nova-compute[5699]: from nova.compute import utils as compute_utils
Oct 20 08:10:11 compute1 nova-compute[5699]: File "/opt/nova-mitaka/local/lib/python2.7/site-packages/nova/compute/utils.py", line 32, in <module>
Oct 20 08:10:11 compute1 nova-compute[5699]: from nova import notifications
Oct 20 08:10:11 compute1 nova-compute[5699]: File "/opt/nova-mitaka/local/lib/python2.7/site-packages/nova/notifications/__init__.py", line 20, in <module>
Oct 20 08:10:11 compute1 nova-compute[5699]: from nova.notifications.base import audit_period_bounds  # noqa
Oct 20 08:10:11 compute1 nova-compute[5699]: File "/opt/nova-mitaka/local/lib/python2.7/site-packages/nova/notifications/base.py", line 36, in <module>
Oct 20 08:10:11 compute1 nova-compute[5699]: from nova.notifications.objects import base as notification_base
Oct 20 08:10:11 compute1 nova-compute[5699]: File "/opt/nova-mitaka/local/lib/python2.7/site-packages/nova/notifications/objects/base.py", line 35, in <module>
Oct 20 08:10:11 compute1 nova-compute[5699]: @base.NovaObjectRegistry.register_notification
Oct 20 08:10:11 compute1 nova-compute[5699]: AttributeError: type object 'NovaObjectRegistry' has no attribute 'register_notification'

The compute node is currently on mikata, installed from source, the controller node is also on mitaka but seems to be working fine. I only have one compute node and I need to upgrade it before I can go to Newton and I was hoping someone might have come across this before, or maybe point me in the right direction.

Thanks

2016-08-31 07:20:16 -0600 received badge  Student (source)
2016-05-01 19:07:48 -0600 received badge  Notable Question (source)
2016-05-01 19:07:48 -0600 received badge  Famous Question (source)
2016-05-01 19:07:48 -0600 received badge  Popular Question (source)
2016-02-04 08:00:57 -0600 received badge  Scholar (source)
2016-02-04 07:23:17 -0600 asked a question Ldap multiple user_tree_dn

Hi There

I have managed to get Ldap authentication working (Active Directory specfically) but I am having a bit of trouble with the layout. I am using the Suse Cloud Hybrid Identity driver(https://github.com/SUSE-Cloud/keystone-hybrid-backend/tree/kilo).

The problem is that the users in the Directory are spread out over a number of OU's and I cannot get all of them in the user_tree_dn. If I don't set a user_tree_dn or I set the dn to one level I don't get any users listed. This is a production Active Directory so changing everything around to suit Openstack isn't really possible.

Is there any way of specifying multiple user_tree_dn's or an option to write my own ldap query?

Thanks in advance for any help.

2015-10-17 10:26:19 -0600 received badge  Famous Question (source)
2015-07-20 11:45:14 -0600 received badge  Famous Question (source)
2015-07-10 08:08:21 -0600 received badge  Notable Question (source)
2015-07-07 03:21:14 -0600 received badge  Notable Question (source)
2015-07-05 17:27:34 -0600 received badge  Popular Question (source)
2015-07-01 07:29:59 -0600 answered a question Launching Heat Stack from Horizon: Expecting to find username or userId in passwordCredentials

Hi There

After banging my head against this one for what seemed like forever the fix came from [https://ask.openstack.org/en/question...]

I commented out all the lines starting stack_ (stack_user_domain, stack_domain_heat....) and the error changed to:

Create_Failed: Authorization failed.

I then changed my config under the [keystone_authtoken] to:

[keystone_authtoken]
auth_uri = http://keystone.domain:5000/v2.0
identity_uri = http://keystone.domain:5000
admin_tenant_name = service
admin_user = heat
admin_password = myreallysupersecretpassword

And now stacks are starting.

I had followed the Ubuntu 14.04 Kilo Openstack install guide to upgrade from Juno. I had also completely re-created all my databases but I was still getting this error.

Hope this helps someone.

2015-06-29 16:25:14 -0600 asked a question Launching Heat Stack from Horizon: Expecting to find username or userId in passwordCredentials

Hi There

I am able to launch stacks from the command line without problem but when I try from Horizon I get:

Error: ERROR: Property error : devserver: flavor Expecting to find username or userId in passwordCredentials - the server could not comply with the request since it is either malformed or otherwise incorrect. The client is assumed to be in error. (HTTP 400)

Using Wireshark the transaction between Horizon and Heat I see

POST /v1/2770e727a29a416db1aa34a483d809bb/stacks HTTP/1.1
Host: heat.domain004
Content-Length: 219
Accept-Encoding: gzip, deflate
X-Auth-User: admin
X-Auth-Token: f79c994183ae49fab0db0274e972d249
Connection: keep-alive
X-Auth-Key: dsa
Accept: application/json
User-Agent: python-heatclient
Content-Type: application/json

{"stack_name": "dsadsadas", "disable_rollback": true, "template_url": "http://10.3.61.2/heat/devbox/devbox.yaml", "parameters": {"db_copy_string": "none", "git-repo": "none", "git-branch": "Master"}, "timeout_mins": 60}

HTTP/1.1 400 Bad Request
Content-Type: application/json; charset=UTF-8
Content-Length: 1408
X-Openstack-Request-Id: req-99b9fb6d-184b-4641-ad25-3fef251ec938
Date: Sun, 28 Jun 2015 12:50:10 GMT
Connection: keep-alive

{"explanation": "The server could not comply with the request since it is either malformed or otherwise incorrect.", "code": 400, "error": {"message": "Property error : devserver: flavor Expecting to find username or userId in passwordCredentials - the server could not comply with the request since it is either malformed or otherwise incorrect. The client is assumed to be in error. (HTTP 400)", "traceback": "Traceback (most recent call last):\n\n  File \"/usr/lib/python2.7/dist-packages/heat/common/context.py\", line 300, in wrapped\n    return func(self, ctx, *args, **kwargs)\n\n  File \"/usr/lib/python2.7/dist-packages/heat/engine/service.py\", line 669, in create_stack\n    parent_resource_name)\n\n  File \"/usr/lib/python2.7/dist-packages/heat/engine/service.py\", line 577, in _parse_template_and_validate_stack\n    stack.validate()\n\n  File \"/usr/lib/python2.7/dist-packages/osprofiler/profiler.py\", line 105, in wrapper\n    return f(*args, **kwargs)\n\n  File \"/usr/lib/python2.7/dist-packages/heat/engine/stack.py\", line 613, in validate\n    raise ex\n\nStackValidationFailed: Property error : devserver: flavor Expecting to find username or userId in passwordCredentials - the server could not comply with the request since it is either malformed or otherwise incorrect. The client is assumed to be in error. (HTTP 400)\n", "type": "StackValidationFailed"}, "title": "Bad Request"}

Using Wireshark the transaction between heat and keystone I see

POST /v2.0/tokens HTTP/1.1
Host: keystone.domain:5000
Content-Length: 94
Accept-Encoding: gzip, deflate
Accept: application/json
User-Agent: python-novaclient
Connection: keep-alive
Content-Type: application/json

{"auth": {"tenantName": "admin", "passwordCredentials": {"username": null, "password": null}}}

HTTP/1.1 400 Bad Request
Date: Sun, 28 Jun 2015 12:37:09 GMT
Server: Apache/2.4.10 (Debian)
Vary: X-Auth-Token
x-openstack-request-id: req-e1fb4585-740c-429b-a8e3-32e30e326302
Content-Length: 260
Connection: close
Content-Type: application/json

{"error": {"message": "Expecting to find username or userId in passwordCredentials - the server could not comply with the request since it is either malformed or otherwise incorrect. The client is assumed to be in error.", "code": 400, "title": "Bad Request"}}

So I can see what what it is on about, the passwordCredentials are not passed from Horizon to Heat and null values are ... (more)

2015-06-29 01:53:52 -0600 received badge  Famous Question (source)
2015-06-23 12:35:27 -0600 received badge  Notable Question (source)
2015-06-22 07:05:22 -0600 received badge  Popular Question (source)
2015-06-17 11:28:35 -0600 received badge  Popular Question (source)
2015-06-17 11:28:31 -0600 answered a question Cloud-init configure network interface

Hi There

Not really a solution but a change in architecture sovled my issue. DNSMasq will only respond to mac addresses it knows so I added the flat bridge onto the network node and now the flat network gets dhcp without conflicting with the MS DHCP server.

2015-06-16 07:37:58 -0600 asked a question Cloud-init configure network interface

Hi There

I am trying to setup a flat network without DHCP in neutron. I have got it setup to the point where I can choose between private tenant networks and a shared flat network and if I start a vm on the shared flat network and manually configure the IP then traffic flows and all works as expected.

The problem is that I can't seem to get cloud-init to configure the nic from metadata (provided by config drive). I can see the IP details in the EC2 metadata but I cannot workout how to get cloud-init to actually use it. I cannot use DHCP as it would conflict with existing DHCP (is the office lan using MS DHCP server).

Thanks in advance for any help.

--edit: I realize what I am looking for is how to setup a provider network, still no luck on acutally doing it though

2015-06-15 07:13:49 -0600 asked a question OS::Heat::Stack The template is not a JSON object or YAML mapping

Hi There

Thanks in advance for any help anyone can provide, I am trying to use the OS::Heat:Stack resource in Openstack Kilo with the following:

heatstacks_global.yaml

heat_template_version: 2015-04-30

description: Multi-Region Deployment

parameters:

resources:
  wtg1:
    type: OS::Heat::Stack
    properties:
      context:
        region_name: Worthing1
      parameters:
      template: test_stack.yaml

test_stack.yaml

heat_template_version: 2015-04-30

description: Scaling Lamp Stack

parameters:

resources:
  http_security_group:
    type: OS::Neutron::SecurityGroup
    properties:
      name: http_security_group
      rules:
        - protocol: tcp
          port_range_min: 80
          port_range_max: 80
        - protocol: icmp
        - protocol: tcp
          port_range_min: 22
          port_range_max: 22
          remote_ip_prefix: 10.3.0.0/16

  http_server:
    type: OS::Nova::Server
    properties:
      flavor: m1.small
      image: Ubuntu 14.04 Trusy Tahir
      key_name: JamesH
      networks:
        - network: admin-testnet
      security_groups:
        - { get_resource: http_security_group }

I have hardcoded all the values but trying to instantiate it from the command line in the folder with both files returns:

ERROR: Failed validating stack template using Heat endpoint at region "Worthing1" due to "The template is not a JSON object or YAML mapping." None

Worthing1 is definately a region and I have instantiated test_stack.yaml on its own without issue. Any advice would be welcome.

James

2015-06-15 06:53:43 -0600 received badge  Famous Question (source)
2015-05-09 15:39:32 -0600 answered a question Metadata Proxy server() got an unexpected keyword argument 'socket_timeout'

Just to Document this, I ended up editing /usr/lib/python2.7/dist-packages/neutron/wsgi.py and removing the parameter from the class. Not the best solution but its woking now.

I was trying to use the juno and jessie-juno-backports repos from http://archive.gplhost.com on debian jessie.

2015-05-09 04:19:49 -0600 received badge  Notable Question (source)
2015-05-09 04:19:49 -0600 received badge  Popular Question (source)
2015-05-05 06:29:14 -0600 asked a question Metadata Proxy server() got an unexpected keyword argument 'socket_timeout'

Hi All,

Thanks for any help in advance, I have been banging my head against this for a few days and I'm no closer to sorting it than I was before. The metadata service is not accessible to instances and I cannot find anything listening on 80.

Every time I restart the l3 Agent I get the log at http://pastebin.com/raw.php?i=MWYxiJhC in /var/log/neutron/neutron-ns-metadata-proxy-

Configs at http://pastebin.com/raw.php?i=xkLpQRnu

Can anyone help, is there anything I am doing wrong?

Thanks James

2015-05-04 01:13:59 -0600 received badge  Enthusiast