summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Subnet Pool: Add "subnet pool delete" command"Jenkins2016-02-187-0/+179
|\
| * Subnet Pool: Add "subnet pool delete" commandTang Chen2016-02-187-0/+179
| | | | | | | | | | | | Change-Id: Ic5ba5effcaea2410421a81da8ffce7c0295179e7 Closes-Bug: 1544587 Partially implements: blueprint neutron-client
* | Merge "Support "network show" command in nova network"Jenkins2016-02-184-5/+153
|\ \
| * | Support "network show" command in nova networkTang Chen2016-02-174-5/+153
| | | | | | | | | | | | | | | | | | | | | | | | "network show" command is not implemented in nova network. This patch implements it. Change-Id: I1fadd890fe36c4e3ac5c9ed389b20c5b2fff8aca partial-Bug: 1543672
* | | Merge "Support "network list" command in nova network"Jenkins2016-02-185-10/+136
|\ \ \ | |/ /
| * | Support "network list" command in nova networkTang Chen2016-02-175-10/+136
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "network list" command is not implemented in nova network. This patch implements it. The Network object in novaclient is quite different from the one in sdk. And the output of "network list" using Nova network is also quite different from using Neutron. It is like this: # openstack network list +--------------------------------------+---------+-------------+ | ID | Name | Subnet | +--------------------------------------+---------+-------------+ | 96a98ec4-31f6-45f6-99e6-9384569b3bb5 | private | 10.0.0.0/24 | +--------------------------------------+---------+-------------+ --long and --external options have not been implemented because the attrs in Network object in novaclient is too much different. This patch also introduces a new FakeNetwork class in compute/v2/fake.py to fake nova network. Change-Id: Id1fdf81fb2fa8b39f2c76b7bae37ac4fecafd0f7 Depends-On: I1b59264cd40aaf1062f4e8db233ccb7fd0e95f0e partial-Bug: 1543672
* | | Merge "Refactor security group rule delete to use SDK"Jenkins2016-02-187-33/+266
|\ \ \ | |_|/ |/| |
| * | Refactor security group rule delete to use SDKRichard Theis2016-02-107-33/+266
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Refactored the 'os security group rule delete' command to use the SDK when neutron is enabled, but continue to use the nova client when nova network is enabled. This patch set also introduces new FakeSecurityGroupRule classes for testing network and compute security group rules. And fixes were made to the network FakeSecurityGroup class. Change-Id: I8d0917925aa464e8255defae95a2a2adfb6cfb75 Partial-Bug: #1519512 Related-to: blueprint neutron-client
* | | Merge "Return names in list role assignments"Jenkins2016-02-175-13/+162
|\ \ \
| * | | Return names in list role assignmentsTom Cocozzello2016-01-275-13/+162
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Utilize the new include names functionality added to list role assignments (GET /role_assignments?include_names=True). Which will return the names of the entities instead of their IDs. Change-Id: I6dc03baf61ef9354a8a259a9f17ff47ce1665ce7 Depends-On: I4aa77c08660a0cbd021502155938a46121ca76ef Closes-Bug: #1479569 Implements: blueprint list-assignment-with-names
* | | | Merge "Add release note for "network delete" command for nova network"Jenkins2016-02-171-0/+4
|\ \ \ \ | | |_|/ | |/| |
| * | | Add release note for "network delete" command for nova networkTang Chen2016-02-171-0/+4
| | | | | | | | | | | | | | | | | | | | Change-Id: Idb8a24465e447e90315c0f614ad91bd7eabd6878 partial-Bug: 1543672
* | | | Merge "Add release note for "ip floating delete/list" commands for neutron ↵Jenkins2016-02-171-0/+6
|\ \ \ \ | | | | | | | | | | | | | | | network"
| * | | | Add release note for "ip floating delete/list" commands for neutron networkTang Chen2016-02-161-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ic90abf106a06edf9af4fe4c8938ab92bfdd8bb42 partial-Bug: 1519502 Related-to: blueprint neutron-client
* | | | | Merge "Add "token revoke" for identity v3"Jenkins2016-02-176-2/+48
|\ \ \ \ \
| * | | | | Add "token revoke" for identity v3lin-hua-cheng2016-02-096-2/+48
| | |_|_|/ | |/| | | | | | | | | | | | | | | | | | Change-Id: Ie631600d02942fe6ce035f31af46abe44e543631 Closes-bug: #1543226
* | | | | Merge "Fix 'openstack --help' fails if clouds.yaml cannot be read"Jenkins2016-02-171-4/+9
|\ \ \ \ \ | |_|_|/ / |/| | | |
| * | | | Fix 'openstack --help' fails if clouds.yaml cannot be readHideki Saito2016-02-141-4/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 'openstack --help' can display the basic information, even if openstack command does not have permission to read clouds.yaml. Change-Id: I7d5255c5ce3bd60af77fc70f433ca78dc011a79f Closes-Bug: #1541047
* | | | | Define FakeFloatingIP class in tests/compute for nova network commandsTang Chen2016-02-162-2/+81
| |_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "ip floating list" command is not available for Neutron now because the implementation is incorrect. The FloatingIP objects returned from Nova and Neutron network are quite different. So they need different FakeFloatingIP class to do the tests. This patch copies class FakeFloatingIP in tests/network to tests/compute for Nova network tests. Will fix the problem in "ip floating list" command and change FakeFloatingIP in tests/network to fit Neutron network tests. Change-Id: Ia29d257868e0f1dc6cd7cfe3819875e5913f76ec Partial-Bug: 1519502 Partially implements: blueprint neutron-client
* | | | Merge "Refactor security group functional tests"Jenkins2016-02-152-0/+0
|\ \ \ \
| * | | | Refactor security group functional testsRichard Theis2016-02-052-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Moved the functional tests for "os security group" and "os security group rule" from the compute to the network directory to align with the refactoring to the commands. Change-Id: Ief6ab17775c6d7e3bef58d9fa025d9dd520b7370 Partial-Bug: #1519511 Partial-Bug: #1519512 Related-to: blueprint neutron-client
* | | | | Merge "Rename parameter "identifier" to "network" in network commands"Jenkins2016-02-152-8/+8
|\ \ \ \ \
| * | | | | Rename parameter "identifier" to "network" in network commandsTang Chen2016-02-142-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In other commands, the name or ID of an object is just the name of the object. For example, name or ID of a server is "server", router is "router". So, do not use "identifier" in network commands. Also, the parameter in doc file network.rst is not "identifier", but "network". Change-Id: I1ec3beefbb878a207bca280b994ca176ef04ee2d
* | | | | | Merge "Use assertRaises() to check if an exception is raised"Jenkins2016-02-153-29/+19
|\ \ \ \ \ \
| * | | | | | Use assertRaises() to check if an exception is raisedTang Chen2016-02-143-29/+19
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In some test cases, try/except is used to check if an exception has been raised. We should use assertRaises() instead. Change-Id: I15c8e757dcab77fd6f895feb018184e1eb7e617b
* | | | | | Support "network delete" command in nova networkTang Chen2016-02-144-6/+64
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "network delete" command is not implemented in nova network. This patch implements it. Change-Id: I5dac1eed6eb8e67298bb446418835a6ab85c859c Depends-On: I1b59264cd40aaf1062f4e8db233ccb7fd0e95f0e partial-Bug: 1543672
* | | | | Floating IP: Neutron support for "ip floating list" commandTang Chen2016-02-145-19/+107
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I253f66f6bc64470e1a18ffea506048eb53f67d5c partial-Bug: 1519502 Related-to: blueprint neutron-client
* | | | | Floating IP: Neutron support for "ip floating delete" commandJude Job2016-02-147-33/+231
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch implements "ip floating delete" command for both compute and network. Also includes unit tests. Change-Id: Ie61f0faad65ec90f9d9956ae463412be8d963d05 partial-Bug: 1519502 Related-to: blueprint neutron-client Co-Authored-By: Tang Chen <chen.tang@easystack.cn>
* | | | | Merge "Add quota functional tests"Jenkins2016-02-132-0/+43
|\ \ \ \ \
| * | | | | Add quota functional testsRichard Theis2016-02-122-0/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add functional tests for "os quota" commands. Change-Id: I0f5939bf4ce553174c9b7ce55bdb3dce0506c409 Related-Bug: #1528249 Partially-Implements: blueprint neutron-client
* | | | | | Merge "Identity: Fix DisplayCommandBase comments for cliff ShowOne subclass ↵Jenkins2016-02-1317-75/+225
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | tests"
| * | | | | | Identity: Fix DisplayCommandBase comments for cliff ShowOne subclass testsTang Chen2016-02-1017-75/+225
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As bug #1477199 describes, the wrong comment below is all over the unit test code of OSC. # DisplayCommandBase.take_action() returns two tuples There is no such class named DisplayCommandBase in OSC. It is in cliff. All OSC command classes inherit from the base classes in cliff, class Command, class Lister and class ShowOne. It is like this: Object |--> Command |--> DisplayCommandBase |--> Lister |--> ShowOne take_action() is an abstract method of class Command, and generally is overwritten by subclasses. * Command.take_action() returns nothing. * Lister.take_action() returns a tuple which contains a tuple of columns and a generator used to generate the data. * ShowOne.take_action() returns an iterator which contains a tuple of columns and a tuple of data. So, this problem should be fixed in 3 steps: 1. Remove all DisplayCommandBase comments for tests of classes inheriting from class Command in cliff as it returns nothing. 2. Fix all DisplayCommandBase comments for tests of classes inheriting from class Lister in cliff. Lister.take_action() returns a tuple and a generator. 3. Fix all DisplayCommandBase comments for tests of classes inheriting from class ShowOne in cliff. ShowOne.take_action() returns two tuples. This patch finishes step 3 in all identity tests. Change-Id: I1f05e833cdacd30915954e4220b6e1f16ac1ed40 Closes-bug: #1477199
* | | | | | | Merge "Identity: Fix DisplayCommandBase comments for cliff Lister subclass ↵Jenkins2016-02-1321-56/+168
|\ \ \ \ \ \ \ | |/ / / / / / | | | | | | | | | | | | | | tests"
| * | | | | | Identity: Fix DisplayCommandBase comments for cliff Lister subclass testsTang Chen2016-02-1021-56/+168
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As bug #1477199 describes, the wrong comment below is all over the unit test code of OSC. # DisplayCommandBase.take_action() returns two tuples There is no such class named DisplayCommandBase in OSC. It is in cliff. All OSC command classes inherit from the base classes in cliff, class Command, class Lister and class ShowOne. It is like this: Object |--> Command |--> DisplayCommandBase |--> Lister |--> ShowOne take_action() is an abstract method of class Command, and generally is overwritten by subclasses. * Command.take_action() returns nothing. * Lister.take_action() returns a tuple which contains a tuple of columns and a generator used to generate the data. * ShowOne.take_action() returns an iterator which contains a tuple of columns and a tuple of data. So, this problem should be fixed in 3 steps: 1. Remove all DisplayCommandBase comments for tests of classes inheriting from class Command in cliff as it returns nothing. 2. Fix all DisplayCommandBase comments for tests of classes inheriting from class Lister in cliff. Lister.take_action() returns a tuple and a generator. 3. Fix all DisplayCommandBase comments for tests of classes inheriting from class ShowOne in cliff. ShowOne.take_action() returns two tuples. This patch finishes step 2 in all identity tests. Change-Id: I2929ee688b1d7afc52c6ab325982bdc24c60a995 Partial-bug: #1477199
* | | | | | | Merge "Identity: Fix DisplayCommandBase comments for cliff Command subclass ↵Jenkins2016-02-136-27/+0
|\ \ \ \ \ \ \ | |/ / / / / / | | | | | | | | | | | | | | tests"
| * | | | | | Identity: Fix DisplayCommandBase comments for cliff Command subclass testsTang Chen2016-02-106-27/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As bug #1477199 describes, the wrong comment below is all over the unit test code of OSC. # DisplayCommandBase.take_action() returns two tuples There is no such class named DisplayCommandBase in OSC. It is in cliff. All OSC command classes inherit from the base classes in cliff, class Command, class Lister and class ShowOne. It is like this: Object |--> Command |--> DisplayCommandBase |--> Lister |--> ShowOne take_action() is an abstract method of class Command, and generally is overwritten by subclasses. * Command.take_action() returns nothing. * Lister.take_action() returns a tuple which contains a tuple of columns and a generator used to generate the data. * ShowOne.take_action() returns an iterator which contains a tuple of columns and a tuple of data. So, this problem should be fixed in 3 steps: 1. Remove all DisplayCommandBase comments for tests of classes inheriting from class Command in cliff as it returns nothing. 2. Fix all DisplayCommandBase comments for tests of classes inheriting from class Lister in cliff. Lister.take_action() returns a tuple and a generator. 3. Fix all DisplayCommandBase comments for tests of classes inheriting from class ShowOne in cliff. ShowOne.take_action() returns two tuples. This patch finishes step 1 in all identity tests. Change-Id: Id7180d10c050c6286b2c05cd990e2e275fbc3d38 Partial-bug: #1477199
* | | | | | | Merge "Add NetworkAndCompute Lister and ShowOne classes"Jenkins2016-02-132-27/+193
|\ \ \ \ \ \ \
| * | | | | | | Add NetworkAndCompute Lister and ShowOne classesRichard Theis2016-02-122-27/+193
| | |/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch set introduces the NetworkAndComputeLister and NetworkAndComputeShowOne classes which are related to the NetworkAndComputeCommand class. These classes are for commands that must support neutron and nova network. The new classes allows both the parser and actions to be unique. Change-Id: I1b59264cd40aaf1062f4e8db233ccb7fd0e95f0e Partial-Bug: #1519511 Partial-Bug: #1519512 Related-to: blueprint neutron-client
* | | | | | | Merge "Trivial: Fix a typo in test_network.py"Jenkins2016-02-131-1/+1
|\ \ \ \ \ \ \
| * | | | | | | Trivial: Fix a typo in test_network.pyTang Chen2016-02-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I5fe4865473ea885b54d02b5d174a632221f815c8
* | | | | | | | Merge "Updated from global requirements"Jenkins2016-02-131-1/+1
|\ \ \ \ \ \ \ \ | |_|_|_|_|/ / / |/| | | | | | |
| * | | | | | | Updated from global requirementsOpenStack Proposal Bot2016-02-121-1/+1
| | |/ / / / / | |/| | | | | | | | | | | | | | | | | | | Change-Id: I1583731e73699b71aa7a03ae4541e481abd6f1ea
* | | | | | | Merge "Add release note for custom logging feature"Jenkins2016-02-121-0/+5
|\ \ \ \ \ \ \
| * | | | | | | Add release note for custom logging featureTerry Howe2016-02-071-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I5471fcb33cd4488b33d2c01d857344f52f361c9d
* | | | | | | | Merge "Allow custom log levels for other loggers"Jenkins2016-02-121-9/+37
|\ \ \ \ \ \ \ \ | |/ / / / / / / | | / / / / / / | |/ / / / / / |/| | | | | |
| * | | | | | Allow custom log levels for other loggersTerryHowe2016-02-051-9/+37
| | |_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It would be convenient to be able to enable special logging for various components that openstack uses. The biggest thing is the --debug prints a lot of information when often all I want to see is the outgoing requests/responses. To get just that logged you would put this in your clouds.yaml: logging: keystoneclient.session: debug Closes-Bug: #1484660 Change-Id: I15c2607e8262f10903dd831ee8622fb5d6315310
* | | | | | Merge "Trivial: Fix "abstractmethod" to "abstract method""Jenkins2016-02-126-24/+24
|\ \ \ \ \ \ | | |_|/ / / | |/| | | |
| * | | | | Trivial: Fix "abstractmethod" to "abstract method"Tang Chen2016-02-106-24/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As Richard <rtheis@us.ibm.com> has pointed out, "abstractmethod" should be "abstract method". This is a small typo I have made when I fix DisplayCommandBase comment bug. Change-Id: I84f1a3158896257686a0a7efa1123eef1b85139f Partial-bug: #1477199
* | | | | | Merge "Fix identity test_role functional tests"Jenkins2016-02-122-2/+2
|\ \ \ \ \ \ | |_|_|/ / / |/| | | | |
| * | | | | Fix identity test_role functional testsRichard Theis2016-02-112-2/+2
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A recent keystone change [1] resulted in the domain_id field being included when showing a role. [1] https://github.com/openstack/keystone/commit/407eabde417e85bb35bc7cbf1995857f4b20aeca Change-Id: I344f4d727f2a16217c075ad8b8393c1e0a233c2e Closes-Bug: #1544547