1498 Commits

Author SHA1 Message Date
Yan Xing'an
929183a893 Enable UT test_auth.py
Remove the skip line in this file, and make some changes to
make them pass.

Partially Implements: blueprint test-addition-refactoring

Change-Id: I6b747da14bc743dbd2b79a6629e761d316de629f
2018-11-15 00:19:49 +08:00
Zuul
24f4459f26 Merge "Refactoring UT directories" 2018-11-14 15:53:01 +00:00
Yan Xing'an
dabd18d326 Refactoring UT directories
Adding some corresponding directories to UT, and
moving some cases to right places.

Partially Implements: blueprint test-addition-refactoring

Change-Id: Ic47ea2640c89787ac291c31db51a8529f73a66a3
2018-11-12 13:13:39 +00:00
Li Jiale
2350cc7496 the http response code is not accurate
When Unsupported Content-Type, it is best to return
HTTPUnsupportedMediaType

Change-Id: If0c11e2ab4645d2acc61c9845c0abd6e12a40df9
2018-11-12 12:50:32 +00:00
Zuul
53c78de6ca Merge "Correct '/v3' suffix to auth_url" 2018-11-12 09:06:23 +00:00
Zuul
eec48ccfc5 Merge "Optimize func and log" 2018-11-12 08:01:46 +00:00
Zuul
10f041be75 Merge "Add missing contants" 2018-11-12 05:24:04 +00:00
hewei
9906b03f74 Optimize func and log
Fix the VimNotFoundException log, it should be give one argument.
optimize the func of _find_vim_key

Change-Id: I16d3904071636571e963232875c9703d8bc2e2d7
2018-11-12 10:18:50 +08:00
Li Jiale
3b85a611a5 Fixed incorrect bin name
the bin name should be tacker, not neutron.

Change-Id: Ia97bf57cd074da56e1b0428338d4178591385111
2018-11-11 18:58:41 +08:00
hewei
dd66889c29 Add missing contants
Missing constants MIN_VLAN_TAG and MAX_VLAN_TAG in function
is_valid_vlan_tag, path: tacker/common/utils

Change-Id: I26619fa71219c24f2eeed77de3c69e46a00e22a5
2018-11-11 06:17:09 +00:00
Zuul
76cdc8deef Merge "Add cover job" 2018-11-09 08:32:50 +00:00
hewei
9b43ecec98 Fix exception msg
Missing 'limit' argument in api_common when giving exception msg

Change-Id: Ica648d10c4467e8c83cd3cdde3f1b51553900fcc
2018-11-08 16:12:09 +08:00
Nguyen Hai Truong
4a7a068d8c Add cover job
Insert python coverage job for py-test.

Change-Id: I1586c527437c57724fd24678594e13490060b74d
2018-11-06 20:44:33 -08:00
Li Jiale
0f0f0a6287 Fixed incorrect auth_url in doc
incrorrect :
http://127.0.0.1/5000/v3
correct:
http://127.0.0.1:5000/v3

Change-Id: I3a430f626fdc0f4669dd4ea0d22f43870f44a155
2018-11-07 08:36:27 +08:00
hewei
1c455d4d25 Fix incorrect argument name in multisite_vim_usage_guide
The optional argument should be --vim-id when not need to register vim during vnf creation.

Change-Id: Ib379944847043021a28a2e68da4b61a7dbf9a138
2018-11-05 14:58:52 +08:00
Kim Bao Long
5fec9293c9 Update min tox version to 2.0
The commands used by constraints need at least tox 2.0.  Update to
reflect reality, which should help with local running of constraints
targets.

Change-Id: I220127ff324719ed0b824b2288273bfd849182e0
2018-11-02 11:21:03 +07:00
Zuul
12d42827c2 Merge "Fix missing 'region_name' parameter" 2018-10-31 16:56:57 +00:00
Zuul
d9ce43de92 Merge "spelling error" 2018-10-31 16:46:53 +00:00
Zuul
ad3bd6b631 Merge "Add notes about the path of tacker commands" 2018-10-31 16:33:57 +00:00
Zuul
759e762a08 Merge "Fix errors in vnfd_template_description" 2018-10-31 15:42:35 +00:00
hewei
bb3fabe40b Fix errors in vnfd_template_description
The sample template configuring a VDU as a firewall can be
viewed in <.../tosca-config-openwrt-firewall.yaml>.
Image in properties use VDU more correct than VM.

Change-Id: Ib55c473888c078ae8df905adc754a253ad7ce63f
Signer-off-by: hewei <hewei@cmss.chinamobile.com>
2018-10-30 23:16:50 +08:00
Zuul
0056ed8b18 Merge "Fix image fit width in Tacker doc" 2018-10-30 08:27:42 +00:00
Kim Bao Long
bcd46a9efa Fix image fit width in Tacker doc
Currently, images in [1] is too wide compared to the horizontal of
the webpage. This patch aims to make these images fit with the
displaying site of webpage.

[1] https://docs.openstack.org/tacker/latest/user/dynamic_vnffg_usage_guide.html

Change-Id: I9ce12dfc9d2424e9e5b700c168b5a6a807dbea1d
2018-10-30 13:35:41 +07:00
Kim Bao Long
9a7ce4f83c Update Keystone auth_url in vim_config.yaml
Currently, keystone_authtoken.auth_url is working at
`http://127.0.0.1/identity`, not `http://127.0.0.1:5000` as shown in
sample vim_config.yaml. So this patch aims to update the outdated
auth_url in vim_config.yaml file

Change-Id: I9e66ab5cd365c7bc70c80974fa891fc2e6ddd96f
2018-10-30 05:14:02 +00:00
akhiljain23
fb06b7c96c Add framework for tacker-status upgrade check
This commit adds the functionality of tacker-status CLI for performing
upgrade checks as part of the Stein cycle upgrade-checkers goal.
It only includes a sample check which must be replaced by real checks in
future.

Change-Id: I7bb127fa10dd168ab24dd8c42013576f84eadfbb
Story: 2003657
Task: 26158
2018-10-26 09:07:04 +00:00
liuyuanyuan
dca933317b Add notes about the path of tacker commands
when we install tacker manually in CentOS, the default path of
console scripts such as tacker-db-manage/tacker-server would be
/usr/bin

Change-Id: If4035a058f06275427a2fe5f5a6e949310c13939
2018-10-22 15:58:19 +08:00
Cong Phuoc Hoang
908222d3ba Fix missing 'region_name' parameter
Currently, 'region_name' is missing in 'get_vnf_resources'
function

Change-Id: I8afd2fcddbc786f92d56c0cdd14195ade62649fc
2018-10-18 13:54:12 +09:00
Trinh Nguyen
2ea5461907 Correct '/v3' suffix to auth_url
Implementing a utility function to check auth_url which is defined in
the keystone_authtoken section of /etc/tacker/tacker.conf. So that,
'/v3' suffix will be added (if it is missed) to match with keystoneclient
v3.

Changes:
- Create a validate_keystone_auth_url function in tacker.nfvo.nfvo_plugin
- Check auth_url in get_auth_dict in nfvo_plugin

Co-Authored-By: Cong Phuoc Hoang <hoangphuocbk2.07@gmail.com>

Change-Id: I30abaff188bd1d352750cb327a624c1e8ced884f
2018-10-18 11:52:13 +09:00
Nguyen Hai
16253a8509 Remove tacker command guide in docs
Tacker command is deprecated after Rocky release.

Change-Id: I0e39489758099b278af0295839bff0dd3202539c
2018-10-12 05:45:14 +00:00
chenjiao
f805cd7716 spelling error
Change-Id: I7a49e55549e770f0ceca74726580858fbffcdd45
2018-10-06 02:46:27 +00:00
OpenStack Proposal Bot
e5f9d249ca Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I2678453b329f165a2b9e9dae859487908e6ebc7d
2018-10-03 07:49:37 +00:00
Zuul
4a77473dcd Merge "Clean up unused VNF status" 2018-09-20 08:23:46 +00:00
Zuul
92068990be Merge "Switch to oslo_messaging.ConfFixture.transport_url" 2018-09-20 07:19:07 +00:00
Zuul
17846fe467 Merge "Fix typo for Getting Started session" 2018-09-20 04:58:29 +00:00
Zuul
f9b3e026c7 Merge "python3 compatibility changes" 2018-09-17 05:46:00 +00:00
Kim Bao Long
6e5c82b5ac Fix typo for Getting Started session
This patch aims to fix some type that might make user confuse while
starting in Tacker project.

Change-Id: Iec227f871068f82a385ba44a29ae420956c8753e
2018-09-14 12:17:18 +07:00
Kim Bao Long
dbe024debf Clean up unused VNF status
Currently, "DOWN" and "INACTIVE" are defined as VNF status, but these
status is no need to be used anymore. So this patch aim to remove
these status from Tacker code.

Change-Id: I98a4f24b8ddb4de5bd799de243cf728cac99e615
2018-09-13 14:46:43 +07:00
Zuul
99bae42173 Merge "Handle exceptions while monitoring VNF" 2018-09-13 05:07:47 +00:00
dharmendra
0d61783243 python3 compatibility changes
Change-Id: I6f421ab13e1f3919028cadf99b18405a23b7bec0
2018-09-10 06:07:17 +00:00
Zuul
08ea72c06a Merge "Update README by adding release notes URL" 2018-09-05 05:18:57 +00:00
Kim Bao Long
0b60eb576d Update README by adding release notes URL
Currently, README.rst does not contain release notes URL. So this
patch aims to add a URL that links to release notes of Tacker. It
also creates a bulleted list for External resources session.

Change-Id: I666c013b465edb650558d5a55e505b4a3dba3566
2018-09-05 08:39:02 +07:00
Zuul
ba44cd4645 Merge "add more details on tacker installation via devstack" 2018-09-05 00:56:05 +00:00
Zuul
7a70977e94 Merge "add python 3.6 unit test job" 2018-09-03 04:30:39 +00:00
Zuul
bcc1a27dff Merge "switch documentation job to new PTI" 2018-09-03 04:29:56 +00:00
Zuul
3f12d85fda Merge "import zuul job settings from project-config" 2018-09-03 04:25:42 +00:00
bhagyashris
6b9d92c52f Handle exceptions while monitoring VNF
If any unknown exception occurs while monitoring VNFs,
then it exits while loop where run_monitor method is
called thereby stopping VNFs monitoring completely.

Handled unknown exception and logged an error message
so that operator is aware of this issue.

Closes-Bug: #1789829
Change-Id: I0b79a0a82e984a3c9a93fc123688ccd2018cc554
2018-08-30 16:03:15 +09:00
陶冶
96e859bd73 add more details on tacker installation via devstack
Change-Id: I64a3ca43b5897da8dfd02668e3c0ce7a431dd0f7
2018-08-21 07:16:02 +00:00
bhagyashris
c93c9ebecd Remove hard coding of policy_type value
Method `get_vnf_policy_by_type` accepts policy_type parameter,
but inside this method, if it's doesn't find policy as specified
in parameter `policy_type`, then it raise VnfPolicyTypeInvalid
in which type is hard coded to constants.POLICY_ALARMING.

This patch removes the hard coded value of policy_type and used
the parameter which is passed to `get_vnf_policy_by_type` method.

Change-Id: I34346fdc51749530a1413a98a3a4b2ee65f78b08
2018-08-20 10:41:23 +09:00
Nguyen Hai
fe8ea462f3 add python 3.6 unit test job
This is a mechanically generated patch to add a unit test job running
under Python 3.6 as part of the python3-first goal.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: I55c4afe37291cb52e82b9c81d333a7f709b314fb
Story: #2002586
Task: #24324
2018-08-17 20:15:38 +09:00
Nguyen Hai
50dd94b111 switch documentation job to new PTI
This is a mechanically generated patch to switch the documentation
jobs to use the new PTI versions of the jobs as part of the
python3-first goal.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: I658141601bc7313e19456e07e6d55d0e58008b4e
Story: #2002586
Task: #24324
2018-08-17 20:15:38 +09:00