1018 Commits

Author SHA1 Message Date
Terry Howe
12f1bdde2a Fix insecure/verify options
The insecure and verify options are broken so that verify always
gets set to True.  One problem was that the parsed args not
defaulted so os_cloud_config thinks there was always a command
line specified.  The other problem was getattr was called on cloud
config instead of get.

Closes-Bug: #1450855
Change-Id: Ib5f004f51a7453cc8f5a89759e2031ec42e04a30
2015-05-17 08:52:03 -06:00
Jenkins
28f65e6650 Merge "Create 1.2.0 release notes" 2015-04-30 20:07:08 +00:00
Dean Troyer
5d5054b6f5 Create 1.2.0 release notes
Change-Id: I82dcd075960d9a4ed8b89471a31a951b274de4fa
2015-04-30 12:08:04 -05:00
Lin Yang
af2a665a63 Fix tiny typo in comment message
compatability => compatibility

Change-Id: I3181fb2b83df1e2cb60a9eedf319f2ad0a487dba
Signed-off-by: Lin Yang <lin.a.yang@intel.com>
2015-04-30 17:21:45 +08:00
Jenkins
634004f33e Merge "Add parent field to project creation" 2015-04-30 03:16:20 +00:00
Jenkins
9b9c396d8f Merge "Redo 1.1.0 release notes" 2015-04-29 16:20:14 +00:00
Jenkins
4451507cce Merge "Remove unique class names because they are scoped" 2015-04-29 06:07:34 +00:00
Jenkins
075987267b Merge "Functional tests run in many environments" 2015-04-29 05:53:09 +00:00
Dean Troyer
cf52e722c0 Minor logging/debug cleanups
This removed the rarely useful cliff command list from the debug output.

Change-Id: I48f22086733acf90e79a6ddac8712734ee2d0b60
2015-04-28 18:15:24 -05:00
Dean Troyer
b1ffbcff0b Redo 1.1.0 release notes
The 1.1.0 release went out without the release notes commit, this
fleshed out the text properly.

Change-Id: I72811689c14a89c8468077d2cc3ab531acb7563b
2015-04-28 16:45:59 -05:00
TerryHowe
75d3130ab2 Remove unique class names because they are scoped
Remove unique class names because they are module scoped.  Also,
add cleanup of the tmp file in the object test.

Change-Id: I8107a02b13ff87793ba1e56e0f0ad26890f24369
2015-04-27 13:51:39 -06:00
Juan Antonio Osorio Robles
48b52a0d40 Raise exception if no session is created
If the clientmanager is unable to create a keystone session (due to
insufficient auth parameters or something else) then the exception
caused by this shouldn't be ignored, as was the case.

On the other hand, we don't want this behaviour in the case of the
'complete' command, so this is now properly detected.

Change-Id: If4f453d23cc87900cda752e9ffbcf41ded59e26f
Closes-Bug: #1444640
2015-04-27 16:54:28 +03:00
TerryHowe
416d840dc4 Reduce parameters to base class execute
Simplify the parameters so we are just passing a command string
to the execute command in the base class.  The string is exactly
the command we are going to run.  This will make debugging
easier and make it clearer what we are actually running.

Change-Id: I0425007e1849f31d692420e38544c55b1acb86c4
2015-04-26 06:37:36 -06:00
TerryHowe
aa7e58cefb Functional tests run in many environments
Have the functional tests running with less customization and
less shell.  This change will allow the functional tests to be
run against any cloud set up in the environment.

Change-Id: I24f621fbace62273e5a0be24e7af9078c0fc8550
2015-04-25 08:42:06 -06:00
Jenkins
2c6c94be52 Merge "Remove references to venv" 2015-04-24 20:34:32 +00:00
Jenkins
4acb01360f Merge "Remove run_tests.sh" 2015-04-24 14:57:37 +00:00
Steve Martinelli
d6fa242818 Remove references to venv
Stick to using tox, remove the tools directory since it only
contained references to using venv. Also update a few other
locations that would have otherwise been incorrect.

Change-Id: I7d3e9067256ac0935f07904abcf584d898ac1d6f
2015-04-24 02:15:36 -04:00
Steve Martinelli
f815b3fe27 Add a doc that dictates backwards incompatible changes
start tracking any changes in a standard format, so users may
have a heads up about any impacts.

Change-Id: Ibc06926a53592e927d11440362cd3598e0d4b2bf
Closes-Bug: 1406470
2015-04-23 23:25:09 -04:00
Steve Martinelli
a81332fad7 Remove run_tests.sh
Use tox instead.

Change-Id: I70f96b301af129e58fd23e6a21c711bbc17940cd
2015-04-23 23:08:17 -04:00
Jenkins
00be0dfc0f Merge "Fix security group create description bug" 2015-04-23 20:05:43 +00:00
Jenkins
f6ac88333c Merge "Security group rule create fails" 2015-04-23 19:57:54 +00:00
Ramaraja Ramachandran
9b6dada8e3 Security group rule create fails
By default the --dst-port value is set to None when no --dst-port
argument is provided. By making the default value (0, 0), this allows
novaclient to proceed without any error.

Change-Id: Ibb58f5df5ed1890a8f499dd2467b12b0e79d547b
Closes-Bug: #1443963
2015-04-22 23:45:33 +00:00
Dean Troyer
11c39530f5 Fix security group create description bug
--description is optional in our CLI but the server requires it to be
non-empty.  Set a default value of the given name.

Closes-Bug: #1434172
Change-Id: I81507a77ad8d815000ff411784ae71e229c77f78
2015-04-22 18:37:31 -05:00
Jenkins
856f641582 Merge "Refactor utility to find identity resources" 2015-04-22 20:26:57 +00:00
Jenkins
166c06ab5f Merge "Adds support for container selection for backup" 2015-04-21 18:45:26 +00:00
Dag Stenstad
2ee904cb2d Adds support for container selection for backup
Changed argument from parsed_args.volume to parsed_args.container as per what
is expected in python-cinderclient.

If not defined, defaults to "backup_swift_container" in cinder.conf.

Stops there being a container for every volume you take backups off.

Change-Id: I4a34894222f71b0f207d007c32427040589406aa
Closes-Bug: 1446751
2015-04-21 18:45:54 +02:00
Dean Troyer
e4fdf6e4e5 Create 1.1.0 release notes
Change-Id: Ib5dd052ed938a844d39a61fcbea0510a2a427ab7
2015-04-21 11:10:48 -05:00
Jenkins
e288e0194c Merge "Handle the pagination for image list" 2015-04-20 20:35:02 +00:00
TerryHowe
3c7b5185ca Handle the pagination for image list
Handle the paginatiion for image list.  We were sorting the
data here, so nothing lost for the generator.

Change-Id: I2d7d4b3d5c9f650953f309c971ac53b64f6f7f77
2015-04-20 11:23:15 -06:00
Steve Martinelli
d733e457e3 Refactor utility to find identity resources
Based on the comments made in this patch:
  https://review.openstack.org/#/c/174908/2/

We should simplify and refactor the way we handle finding identity
resources.

Change-Id: I77db2e3564faa90a917082a6c6cb87269e93aebe
2015-04-20 12:40:33 -04:00
OpenStack Proposal Bot
32843844a3 Imported Translations from Transifex
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: I0e7cdac01f3dc8b9368aa891e93125a5e838ae3d
2015-04-20 06:04:10 +00:00
Jenkins
46d9fa1080 Merge "Begin documenting --os-cloud" 2015-04-19 15:16:42 +00:00
Jenkins
2c6a5ca53a Merge "Update the docs for new nic options" 2015-04-19 14:23:12 +00:00
Jenkins
3f84731637 Merge "remove unnecessary conditionals" 2015-04-19 14:23:05 +00:00
Jenkins
c9d3addf2c Merge "Role operations should not require list object permission" 2015-04-19 13:55:33 +00:00
Steve Martinelli
00eeb3593c remove unnecessary conditionals
In several places we had else branches where a reasonable default
would do the job. This makes the code a mean cleaer and easier to
read.

Change-Id: I231e09aab85fd32b8300bc33c48d0899b728b96e
2015-04-19 02:41:04 -04:00
Jenkins
fd8b284164 Merge "Add --os-cloud support" 2015-04-19 06:17:31 +00:00
Jenkins
61fb68e8b3 Merge "Add support for showing limits of a specific project" 2015-04-19 06:15:08 +00:00
Steve Martinelli
e85971b1a6 Update the docs for new nic options
Change-Id: I4c8b93ede80f993eab8badfbba6bf1c530844d54
2015-04-19 01:43:40 -04:00
Dean Troyer
6e7013954d Begin documenting --os-cloud
Change-Id: Id2e98ac5601840f6d380cabcd578f1a6d6d9b245
2015-04-18 23:04:53 -05:00
Dean Troyer
5649695c65 Add --os-cloud support
This adds a new option --os-cloud that allows the configuration values
for multiple clouds to be stored in a local file and selected with
a single option.

Internal option names have had 'os_' removed to be comptible with
the options returned from OpenStackConfig().get_one_cloud().

The config file is ~/.config/openstack/clouds.yaml:

Sample
------
clouds:
  devstack:
    auth:
      auth_url: http://192.168.122.10:35357/
      project_name: demo
      username: demo
      password: 0penstack
    region_name: RegionOne
  devstack:
     auth:
       auth_url: http://192.168.122.10:35357/
       project_name: demo
       username: demo
       password: 0penstack
     region_name: RegionOne

Co-Authored-By: Monty Taylor <mordred@inaugust.com>
Change-Id: I4939acf8067e44ffe06a2e26fc28f1adf8985b7d
Depends-On: I45e2550af58aee616ca168d20a557077beeab007
2015-04-18 23:04:51 -05:00
Jenkins
a5e79d58ae Merge "Defer client imports" 2015-04-19 03:23:12 +00:00
Jenkins
98604abcda Merge "Imported Translations from Transifex" 2015-04-18 16:37:07 +00:00
Jenkins
2ea6f10691 Merge "Suppress warnings user can't fix" 2015-04-18 07:12:03 +00:00
OpenStack Proposal Bot
0e61e5f43c Imported Translations from Transifex
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: I489da64d5c1b14506dfa6619df71afa763f4b3b6
2015-04-18 06:04:12 +00:00
Jenkins
fbb7641694 Merge "Print warning on authentication error" 2015-04-18 05:27:26 +00:00
Jenkins
cb681706fa Merge "Fix session timing" 2015-04-17 20:47:55 +00:00
Steve Martinelli
6c4f81516c Re-organize functional tests
The tests should be further divded by project version, similar to
the structure of the unit tests.

Change-Id: Ied3a4204983cdd253c5602a60968c066038d88f2
2015-04-17 13:37:44 -04:00
Nathan Kinder
4c107e6f1b Role operations should not require list object permission
When using Keystone's policy.v3cloudsample.json policy file, a project admin is
supposed to be able to manage role assignments.  Unfortunately, a project admin
isn't allowed to perform these operations using python-openstackclient, as we
attempt to perform list operations for any of the object types specified (users,
groups, projects). This is done in an attempt to lookup the id of the object by
name, but we perform this list operation even when the user specifies everything
by id. This causes 403 errors.

This patch still attempts to look up the object id by name, but we catch the 403
and assume that the user specified an id if the list operation is not allowed.
This is similar to what we do with the --domain option for other commands.

Closes-bug: #1445528
Change-Id: Id95a8520e935c1092d5a22ecd8ea01f572334ac8
2015-04-17 10:14:57 -07:00
Jenkins
6ce930e846 Merge "Fix skipped image create attribute location attr" 2015-04-17 15:04:57 +00:00