diskimage-builder/diskimage_builder/elements/python-brickclient
Ian Wienand bfca36c772 Release 1.25.2
-----BEGIN PGP SIGNATURE-----
 
 iQEcBAABAgAGBQJYV1yqAAoJEBty/58O8cX8hLwIAKP66w6MdPN8PDgUOteui/Sx
 N0UFKJ9yR4GQOAP0NffPLjch5/g0iJLs3eFKOhtGC1LjbDjpVgjX8vW18ib8wBZK
 GemOZPF3uxg8FROrZF1vpoDy/cHgL1YV10hCnwdjN/r9rb8zOuSabqjW+Dennj2n
 fZ0SJfa8Owfudn3YxGuOymVb/wMtEloDmVGBEI1Y+h7osELCCDi3OXmwsA8qMsdl
 cTwbeugBs4PlOVbZUK/JKGuwIHKgPnDYzYu5KpXw77/MdjGT0fo5Tlq5AOBDI2sC
 9JOFEBDli4Ro05VwvI58ADMpvvOax+9EvOhLbB1dRPdZl21Iyb6gOdy2PUbFO0c=
 =aKxq
 -----END PGP SIGNATURE-----

Merge tag '1.25.2' into merge-branch

Release 1.25.2

Change-Id: I698bcf2e82117bd81649cd065a7af5cac85990c7
2017-02-02 11:20:00 +11:00
..
post-install.d Release 1.25.2 2017-02-02 11:20:00 +11:00
README.rst Release 1.25.2 2017-02-02 11:20:00 +11:00
element-deps Release 1.25.2 2017-02-02 11:20:00 +11:00
package-installs.yaml Release 1.25.2 2017-02-02 11:20:00 +11:00
pkg-map Release 1.25.2 2017-02-02 11:20:00 +11:00

README.rst

python-brickclient

  • This element is aimed for providing cinder local attach/detach functionality.
  • Currently the feature has a dependency on a known bug "https://launchpad.net/bugs/1623549", which has been resolved and will be part of the upstream with the next release of python-brick-cinderclient-ext. Note: Current version of python-brick-cinderclient-ext i.e. 0.2.0 requires and update to be made in Line32 fo below script. /usr/share/python-brickclient/venv/lib/python2.7/site-packages/brick_cinderclient_ext/__init__.py update "brick-python-cinderclient-ext" to "python-brick-cinderclient-ext".
  • Usage: Pass the below shell script to parameter 'user-data' and set 'config-drive=true' at the time of provisioning the node via nova-boot to make cinder local attach/detach commands talk to your cloud controller. [Example of Config Drive Script] #!/bin/bash FILE="/etc/bash.bashrc" [ ! -f "$FILE" ] && touch "$FILE" echo 'export OS_AUTH_URL="http://<controller_ip>:5000/v2.0"' >> "$FILE" echo 'export OS_PASSWORD="password"' >> "$FILE" echo 'export OS_USERNAME="demo"' >> "$FILE" echo 'export OS_TENANT_NAME="demo"' >> "$FILE" echo 'export OS_PROJECT_NAME="demo"' >> "$FILE" exec bash To attach: /usr/share/python-brickclient/venv/bin/cinder local-attach <volume_id> To detach: /usr/share/python-brickclient/venv/bin/cinder local-detach <volume_id>
  • Alternatively, the same action can be completed manually at the node which does not require setting up of config drive such as: /usr/share/python-brickclient/venv/bin/cinder --os-username demo --os-password password --os-tenant-name demo --os-project-name demo --os-auth-url=http://<controller_ip>:5000/v2.0 local-attach <volume_id>