1280 Commits

Author SHA1 Message Date
Terry Howe
05800c4722 Rename context.py to logs.py
At one point this file contained the context for logging, but
the reason for its existence is now for logging.

Implements: blueprint logging-migration

Change-Id: I4ba42bbef97b09d31236ac8c01b6fb23827b8bee
2015-10-30 17:38:42 +09:00
TerryHowe
bfebac8282 Allow debug to be set in configuration file
The current default value for debug in cliff is False.  Cloud
config assumes that it was set that way on the command line and
does not overlay it with the value from the configuration file.
Cliff bug:

https://bugs.launchpad.net/python-cliff/+bug/1483378

Change-Id: I66d82b489b2241dbcd1e1350e94259a54ce09de7
2015-10-30 11:16:36 +09:00
TerryHowe
85a03945f0 Create log configuration class
Configuration of logging gets triggered twice.  The first time it
uses the CLI options when the application is started and second
it uses the configuration file after that is read.  The state of
the logging needs to be saved from the first to the second time,
so I created a class.

Implements: blueprint logging-migration

Change-Id: I7b8d1a3b6fd128e98cafd7c16009c7b694a52146
2015-08-26 10:23:53 +00:00
TerryHowe
6c46355734 Optimize log formatting
There is no way to change the configuration variables we want
printed in log messages, so format them in the constructor.
This will save us from overridding the format method and
a couple cpu cycles every log message.  This change also moves
the _LOG* variables into the formatter since they aren't really
globally needed.

Change-Id: I706e9db7da3daec20332f9d1533fe665f2739dea
Implements: blueprint logging-migration
2015-08-13 22:16:10 +00:00
TerryHowe
d828429d6a Extract log level from configuration file
Extract log_level from configuration file if the level was not
overridden by the command line option.  The default command line
option is 1 and there is no command line option to set the
verbose_level to 1, so if it is 1, it has not be set.

Change-Id: I1be04367c72f83c1181f92ca4c2c83165b66995c
Implements: blueprint logging-migration
2015-08-13 22:16:03 +00:00
TerryHowe
ca9965c328 Move options to log level out of shell.py
Move the conversion of command line options to log level out
of shell.py.

Change-Id: I86cb45a85cd63927aa1c87c1eed27542981df659
Implements: blueprint logging-migration
2015-08-13 16:11:25 -06:00
TerryHowe
9c3c336391 Move set warnings filters to logging module
This is the first step in moving logging out of shell.py

Change-Id: I3dcb4e17bb4687988ddf9b793ad1a308ef89b242
Implements: blueprint logging-migration
2015-08-13 16:05:01 -06:00
Daisuke Fujita
e23dd6de58 Set up every time record log in file
This will allow users to record logs of all their commands into
a predefined log file, in clouds.yaml. The log should have a
format similar to that of oslo.log.

Change-Id: I1b334bf429d575fc25809c9706fc0b11116be3f1
Implements: blueprint every-time-record-log-in-file
2015-08-08 10:02:46 -06:00
Jenkins
46cc7d12ad Merge "Add configuration show command" 2015-07-24 03:32:51 +00:00
TerryHowe
43942871a9 Add configuration show command
Create a `configuration show` command that displays the current
configuration of the CLI.  Different configurations can be
displayed using options such as --os-cloud.  Passwords and
tokens are redacted by default unless the --unmask
option is specified.

Closes-Bug: #1476729

Change-Id: I0792365d0c5fa526cd09c0ed88c6bb1e2cb813a7
2015-07-23 13:00:59 -06:00
Jenkins
e54a15aabb Merge "add doc for floatingip" 2015-07-23 16:14:56 +00:00
OpenStack Proposal Bot
025d38040c Imported Translations from Transifex
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: Ic6d4612806a946a4f8047b501bea8ae08557fad7
2015-07-23 06:08:14 +00:00
Jenkins
b9ca72853b Merge "Fix --os-auth-plugin in auth_with_unscoped_saml" 2015-07-22 17:07:40 +00:00
Hugh Saunders
874c921292 Fix --os-auth-plugin in auth_with_unscoped_saml
The error message refers to --os-auth-plugin which is not a valid
option. This patch changes that to --os-auth-type.

Change-Id: I02ec0b7855131180bb8c674051930ebb51cb7303
Closes-Bug: #1477083
2015-07-22 11:51:33 +01:00
chengkunye
a5b0d9ab35 add doc for floatingip
Change-Id: Ibdee50066452ed33f210e93de29eba3c0ec2e155
2015-07-22 05:08:36 -04:00
OpenStack Proposal Bot
54ff5d8758 Updated from global requirements
Change-Id: I7fc281b80342a14e11f87afb41c3abc515d8487c
2015-07-22 04:59:50 +00:00
Jenkins
317959d76e Merge "Fix yet more documentation warnings" 2015-07-22 03:49:33 +00:00
TerryHowe
d70df6a4a2 Fix yet more documentation warnings
Change-Id: I87683039601ae90531f27ebebbc4d0b1d252e846
2015-07-21 14:07:18 -06:00
Jenkins
4d9d2dbd36 Merge "Make trustee/trustor/project searchable by ID" 2015-07-21 19:46:16 +00:00
Steve Martinelli
921361b3ae Make trustee/trustor/project searchable by ID
In the previous implementation, we were always including the domain
argument, which caused a lookup by name for trustee/trustor and
project. By excluding it when not necessary, we do a search by
ID in find_resources.

Change-Id: Id756aeab522b5dccb2dc6b31d137a28514b0fdf6
Closes-Bug: 1473298
2015-07-20 20:12:50 -07:00
Jenkins
4c368d12d2 Merge "Remove requirements.txt from tox.ini" 2015-07-21 00:42:41 +00:00
Jenkins
26ea98b30e Merge "Add create and list for volume type v2" 2015-07-20 22:28:10 +00:00
Jenkins
7442c018d2 Merge "Format volume type properties when showing" 2015-07-20 21:03:29 +00:00
chengkunye
659abf4928 Add create and list for volume type v2
Volume API v2 is missing create and list features.

implements bp: volume-v2

Change-Id: I34a1ae440e9620b1c65546f4f43b369c8661250d
2015-07-20 12:59:57 -07:00
Jenkins
061e0a3670 Merge "add image member commands for image API" 2015-07-20 19:56:32 +00:00
chengkunye
7bb459837b add image member commands for image API
This commit adds the following commands:
    image project add
    image project remove

Closes-Bug: 1402420
Change-Id: I07954e9fa43a3ad6078dd939ecedf9f038299e7b
2015-07-20 10:38:42 -07:00
Jenkins
07248b3642 Merge "Fix the way auth_type default value is overriden" 2015-07-20 16:53:31 +00:00
Jenkins
457ea94478 Merge "Add functional tests server reboot" 2015-07-20 13:37:31 +00:00
Jenkins
4887fb9206 Merge "Add functional tests server IP attach and detach" 2015-07-20 13:36:40 +00:00
Javier Pena
c5b4383160 Fix the way auth_type default value is overriden
Commit 50f05448982b5fafd9d9a7783b639dd145090a0d to os-client-config
removed the default values in the _defaults dict. This makes any
call to cloud_config.set_default() before initializing the dict
fail.

The fix changes the way the auth_type default is overriden, by
doing it when cloud_config.OpenStackConfig() is executed.

Change-Id: If37d3ba303f01d4c77fd7c15a3cde9634534b64a
Closes-bug: #1473921
2015-07-20 15:29:41 +02:00
Steve Martinelli
a6d5f3f94c Format volume type properties when showing
Currently, the properties of a volume type are unformatted.
Use the formatter to keep things consistent with the way
properties are represented in OSC.

Change-Id: I81c6bd3fdbc30568c269e501c740473b2a1ffb4e
2015-07-19 17:36:34 -07:00
Steve Martinelli
11c9695e5e Rename type.py to volume_type.py
For Volume V1, we have a type.py file which should be renamed to
volume_type.py (as it's named for V2).

Change-Id: If860bbafe4a801d8b4fa06938eef20658c4fcc2c
Closes-Bug: 1475958
2015-07-19 17:02:43 -07:00
Jenkins
469ba41b51 Merge "Fix image save with API v2" 2015-07-19 23:41:17 +00:00
Jenkins
d26650b57d Merge "Removes trailing blank in trust show" 2015-07-19 23:14:31 +00:00
Jenkins
6dc136f2d7 Merge "Add volume type show for volume v1" 2015-07-19 21:26:12 +00:00
Gilles Dubreuil
00b4e38d3c Removes trailing blank in trust show
Previously a blank character at the end of the roles value would remain

Change-Id: I0961a5f9fb4b270a6055ee69898eadee315e416a
Closes-Bug: 1474707
2015-07-19 13:33:00 -07:00
Jenkins
e06efbaa9b Merge "--property should be required in os unset commands" 2015-07-19 17:32:14 +00:00
Jenkins
64334c0dc9 Merge "More minor docs fixes" 2015-07-19 16:44:19 +00:00
jiaxi
e30ebfeb17 Add volume type show for volume v1
volume type show is missing for volume V1 API.

Closes-Bug: #1475879
Change-Id: Ic8a0845ecec04146d536412463175f57ef6511ae
2015-07-19 16:17:40 +00:00
jiaxi
9c95b37832 --property should be required in os unset commands
The three commands below
  openstack volume unset
  openstack snapshot unset
  openstack volume type unset

Should have --property as a required argument,
not optional. The reason is the command will not work
without --property.

Closes-Bug: #1475872
Change-Id: Ib9e29392472db38982cc2817af2dd5055f5a01ca
2015-07-19 15:46:14 +00:00
TerryHowe
643d1d90fe More minor docs fixes
Change-Id: Ia74b8e14bacb562d9bac29221f511acbab5296df
2015-07-19 07:03:57 -06:00
TerryHowe
88c39ef48e Minor identity documentation change
Change-Id: Ib139f2376e70ebb7b5621cdad4da61c64c1f9246
2015-07-19 06:06:19 -06:00
Jenkins
b08dd6f132 Merge "Add details to the documentation." 2015-07-19 06:13:21 +00:00
TerryHowe
ea103cab1d Add functional tests server reboot
Change-Id: I1699ac826519ccc177159423c7b6727ffaf4abff
2015-07-18 15:08:46 +00:00
TerryHowe
a9f85736ef Add functional tests server IP attach and detach
Change-Id: Id87a5474e2df80c9ef84a6c554f12116302a38b3
2015-07-18 09:08:26 -06:00
Jenkins
b59d9efdb0 Merge "Add functional tests for servers that require wait" 2015-07-18 14:32:36 +00:00
Jenkins
d74023b4e8 Merge "Making --property as required when openstack flavor unset" 2015-07-18 14:32:33 +00:00
Jenkins
52bdda9bae Merge "Updated from global requirements" 2015-07-18 13:23:44 +00:00
heha
8bae138354 Add details to the documentation.
Add "or-show" to "project create" and "role create" in the documentation.

Closes-Bug: #1475485
Change-Id: I2d98766c4ddd8b2022012c4f6c5e1d4fcebfc42a
2015-07-18 12:56:39 +00:00
jiaxi
2fc800aace Making --property as required when openstack flavor unset
When using openstack flavor unset, the --property is needed,
so the --property should be a required parameter.

Close-Bug: #1474237
Change-Id: Id6913e1b263eddeb5dd44c3edb957206b68f816c
2015-07-18 08:29:54 -04:00