Uploaded image for project: 'Libcloud'
  1. Libcloud
  2. LIBCLOUD-185

Add support for ex_userdata argument to OpenStack_1_1_NodeDriver create_node method

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Compute
    • Labels:
      None

      Activity

      Hide
      kami Tomaz Muraus added a comment -

      Is this argument only available in some OpenStack extensions (e.g. Ubuntu's?). I couldn't really find anything in the OpenStack docs and the page you linked to doesn't actually contain a lot of information.

      Show
      kami Tomaz Muraus added a comment - Is this argument only available in some OpenStack extensions (e.g. Ubuntu's?). I couldn't really find anything in the OpenStack docs and the page you linked to doesn't actually contain a lot of information.
      Hide
      kami Tomaz Muraus added a comment -

      Also the base64 encode thing you did won't work with Python 3. You need to make sure that the data you pass in is actually bytes and not unicode. You need to do something like this - https://github.com/apache/libcloud/commit/8ea27aef7c494990b325d1e000ff15333c90ede7

      Show
      kami Tomaz Muraus added a comment - Also the base64 encode thing you did won't work with Python 3. You need to make sure that the data you pass in is actually bytes and not unicode. You need to do something like this - https://github.com/apache/libcloud/commit/8ea27aef7c494990b325d1e000ff15333c90ede7
      Hide
      jaydoane Jay Doane added a comment -

      I don't believe this argument is specific to any particular extension. I discovered it while using the python-novaclient library: https://github.com/openstack/python-novaclient/blob/master/novaclient/v1_1/servers.py#L412

      I have tested it on the stable/essex branch of devstack, however, and it works as advertised.

      I'll attempt to fix up the patch to work with python 3 shortly.

      Show
      jaydoane Jay Doane added a comment - I don't believe this argument is specific to any particular extension. I discovered it while using the python-novaclient library: https://github.com/openstack/python-novaclient/blob/master/novaclient/v1_1/servers.py#L412 I have tested it on the stable/essex branch of devstack, however, and it works as advertised. I'll attempt to fix up the patch to work with python 3 shortly.
      Hide
      jaydoane Jay Doane added a comment -

      Now supporting python 3

      Show
      jaydoane Jay Doane added a comment - Now supporting python 3
      Hide
      kami Tomaz Muraus added a comment -

      Merged thanks.

      Show
      kami Tomaz Muraus added a comment - Merged thanks.

        People

        • Assignee:
          Unassigned
          Reporter:
          jaydoane Jay Doane
        • Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved:

            Development