summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2017-09-05Add host specific VM list to inspector design guide lineYujun Zhang1-1/+18
JIRA: DOCTOR-73 Change-Id: I163b97ec87761538594034e926055646223af327 Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
2017-09-04add running profiler in pythondongwenjuan9-31/+91
For support bash and python both, I don't refactor the profiler_poc file, just call the func in python main. JIRA: DOCTOR-117 Change-Id: I5f06ecbd673c6a21acc94cc359a3f2b749b77b13 Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
2017-09-04refactor failure injectdongwenjuan17-54/+287
JIRA: DOCTOR-116 Change-Id: I14deda4ccb47414cff139a522a9196b68e92500e Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
2017-09-04Merge "Test port data plane status on Sample Inspector"Ryota Mibu2-25/+55
2017-08-30delete workaroud of doctor driver in congress for Apex installerdongwenjuan1-6/+0
Change-Id: I767777fd3c07998170b0957400a3e2a00ebe62a9 Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
2017-08-23Specify the filename for 'w' filemodedongwenjuan1-2/+3
FileHandler use 'a' mode in default for writing the file. Change-Id: Ie19d80e5ff286da2722634787dcffe36234c0119 Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
2017-08-23Merge "add maintenance detailed spec"Tomi Juvonen2-0/+156
2017-08-22add maintenance detailed specTomi Juvonen2-0/+156
JIRA: DOCTOR-52 Change-Id: I43c2d224fcd188946049d89fe266c541ea268dea Signed-off-by: Tomi Juvonen <tomi.juvonen@nokia.com>
2017-08-17Test port data plane status on Sample InspectorCarlos Goncalves2-25/+55
Exercise the Neutron port data plane status API on the Sample Inspector. Setting the data_plane_status field of Neutron Port objects to 'DOWN' when a network failure on a node is detected. To keep the test simple enough to verify the Neutron API, we don't consider a scenario where multiple NIC ports could be present on that particular node. It could still be done, though. JIRA: DOCTOR-107 Change-Id: I9ffa0a23626b7edfaeb601dc90d55c756216cc41 Signed-off-by: Carlos Goncalves <carlos.goncalves@neclab.eu>
2017-08-17Merge "Decode received data in byte type to str type"Carlos Goncalves1-1/+1
2017-08-17Merge "fix some bugs in monitor"Carlos Goncalves2-15/+11
2017-08-17fix some bugs in monitordongwenjuan2-15/+11
1.send bytes data to the socket see https://docs.python.org/3/library/socket.html 2.fix a endless loop Change-Id: I880e713266347d8836cec45ebf9a500bb7c813f4 Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
2017-08-16Decode received data in byte type to str typeCarlos Goncalves1-1/+1
json.loads in Python 3.5 doesn't accept a byte-type values so we need to decode it. Note that this is specific to Python 3.5; Python 2.7 and 3.6 accept byte-type values. Change-Id: I490f8e0f02a6ce277f86e75b32d1210bfcca8d49 Signed-off-by: Carlos Goncalves <carlos.goncalves@neclab.eu>
2017-08-16Delete project after stopping InspectorCarlos Goncalves1-1/+1
At cleanup phase, the sample Inspector fails to re-enable the state of the compute services. Such happens because the novaclient instance it's using is bound to the 'doctor' project, which has just been deleted at user.delete(). Thus, it is necessary to postpone the deletion of the project after stopping the inspector. Change-Id: I8cd5885cdfd3671a6c28342bdee65eac64dafaa8 Signed-off-by: Carlos Goncalves <carlos.goncalves@neclab.eu>
2017-08-16Merge "make poc profiler run in default"wenjuan dong1-2/+2
2017-08-15add the whole config opts in sample configdongwenjuan1-13/+36
comment the monitor opts, as all the tests will be runned with collected monitor Change-Id: Ie63b74f69b9452de31e85d9cc8ec0d49127ebc06 Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
2017-08-14make poc profiler run in defaultRyota MIBU1-2/+2
Change-Id: Icd110bd532e86a86b82824e849337649c284d3e6 Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
2017-08-09Add Collectd as a Monitor TypeUmar Farooq12-20/+522
A plugin for collectd is added to use collectd on compute as a monitor type. Monitor files are updated accordingly. The inspector now listens on all interfaces instead of only localhost to enable it to communicate with compute node. JIRA: DOCTOR-86 JIRA: DOCTOR-101 Change-Id: Idc834d428152e4687020eff7d8db36a652b1bf86 Signed-off-by: Umar Farooq <umar.farooq@neclab.eu>
2017-08-09Merge "refactor apex installer"Ryota Mibu10-5/+273
2017-08-08Merge "fix the bug: congress server can't be started"wenjuan dong1-6/+7
2017-08-08fix the bug: congress server can't be starteddongwenjuan1-6/+7
After we modify the congress.conf file, congress server can't be started. Change-Id: Icc3bd044a5fb7622620c42d6d25802739de875d0 Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
2017-08-07refactor apex installerdongwenjuan10-5/+273
JIRA: DOCTOR-100 Change-Id: I684071d35aac99ad1f5b65ae74e0a98ac726af35 Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
2017-08-07install python packagesdongwenjuan1-0/+9
Change-Id: Id68c9b1206deb58ff94fc942fbef94bffbc1e68b Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
2017-08-01refactor local installerdongwenjuan7-2/+206
JIRA: DOCTOR-100 Change-Id: I1e2c53f7a716156e35386d42c0df32a228a78fab Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
2017-07-29refactor sample consumerdongwenjuan4-0/+112
JIRA: DOCTOR-113 Change-Id: I60f17953e9b1cdf31ea50f313b33f8ede0831bc2 Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
2017-07-29Merge "refactor congress inspector"wenjuan dong3-0/+101
2017-07-27refactor congress inspectordongwenjuan3-0/+101
JIRA: DOCTOR-98 Change-Id: I22fa893a1c1973fc63f994b630dd0c6a2c30e641 Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
2017-07-27refactor the monitordongwenjuan6-2/+187
JIRA: DOCTOR-99 Change-Id: I1831d329ffe80435532678fcb23d54f310422ce8 Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
2017-07-27Merge "fix some bugs for python verify jobs:"wenjuan dong5-6/+13
2017-07-27Merge "refactor sample inspector"wenjuan dong5-0/+226
2017-07-26Merge "Fix host status grep bug and Remove connection_pool argument"Carlos Goncalves2-3/+2
2017-07-26fix some bugs for python verify jobs:dongwenjuan5-6/+13
1.PYTHON_ENABLE=True does not work in bash The python jobs does not run even we enabled them. The reason is that currently JJB parse the parameter 'PYTHON_ENABLE' as 'True' which does not work in bash. Fix it to compare with [Tt]rue. 2.Install tox if it is not installed 3.support only python3.4 in tox.ini 4.install python3-dev Change-Id: I1a8ebad2fd06fe50ca4f739adb8d6d76caa2963b Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
2017-07-25refactor sample inspectordongwenjuan5-0/+226
JIRA: DOCTOR-98 Change-Id: I7110b680d0a0c64b1b2666abcea183e73373dca7 Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
2017-07-18Merge "Added steps to enable Python 3 and Congress in README file"wenjuan dong1-2/+10
2017-07-17Added steps to enable Python 3 and Congress in README fileBertrand Souville1-2/+10
Change-Id: Ic880836931f3f00c9ff926c9e981b0d49c9a045e Signed-off-by: Bertrand Souville <souville@docomolab-euro.com>
2017-07-17Updates upstream file (dataplane status to network port in Neutron)Bertrand Souville1-1/+3
Change-Id: I00f232dede044ca396fe914272e7ade9ac9d6753 Signed-off-by: Bertrand Souville <souville@docomolab-euro.com>
2017-07-13Fix host status grep bug and Remove connection_pool argumentUmar Farooq2-3/+2
Host status returned the wrong output as the "OS-EXT-SRV-ATTR:host" pattern appears twice in the "openstack server show" output. The argument connection_pool is deprecated and is not needed. Change-Id: Ib107e0bad8084bdf6f77689f112bde04bdb97543 Signed-off-by: Umar Farooq <umar.farooq@neclab.eu>
2017-07-07add create alarmdongwenjuan6-1/+139
JIRA: DOCTOR-93 Change-Id: I316608c9627ff38e55154257b798244de3f221c5 Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
2017-07-07Add create instancesdongwenjuan6-6/+209
JIRA: DOCTOR-93 Change-Id: I7645c1cc0c76ff86b9fbcc01c19038469fc9b9b4 Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
2017-07-05Merge "support config file"wenjuan dong3-2/+40
2017-07-05Merge "Create policy.json file in Ocata for non-admin user"Ryota Mibu2-12/+72
2017-07-03Create policy.json file in Ocata for non-admin userUmar Farooq2-12/+72
Non-admin user is not allowed to view host_status flag. To get the host status, policy.json file needs to be created as it is not available in Ocata by default. This is created for local and fuel installer types in this commit. JIRA: DOCTOR-110 Change-Id: Ie626217a515f821c47b1cb6ed0e3d504d8e01b3a Signed-off-by: Umar Farooq <umar.farooq@neclab.eu>
2017-06-30support config filedongwenjuan3-2/+40
Change-Id: Ib8e696acfe21787904fce6838341f3a256aa0267 Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
2017-06-30replace urllib2 with urllib.request for python3dongwenjuan1-2/+2
Change-Id: I68036c295689fae55125854074e3bc4d920fec06 Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
2017-06-27add test user, project and roledongwenjuan5-39/+221
JIRA: DOCTOR-93 Change-Id: I85bfb21b7c07c40dfd1bfa6049130ad82fa3996a Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
2017-06-07Merge "Fix run.sh bug for dynamic interfaces"Carlos Goncalves1-2/+1
2017-06-06Fix run.sh bug for dynamic interfacesUmar Farooq1-2/+1
The run.sh extracts the name of interface using awk with 7th value in "ip a" command but in case of DHCP enabled interface this value is "dynamic". So the fix takes the last value of the output which is the correct interface name. EDIT: Removed the redundant line to get 5th element. JIRA: DOCTOR-109 Change-Id: I0775d90ef219387e5b68abd4fd98d38d2104f128 Signed-off-by: Umar Farooq <umar.farooq@neclab.eu>
2017-05-31Remove obsolete packagesYujun Zhang3-4/+0
`os` and `sys` is no longer used in sample monitor, inspector and consumer Change-Id: I6d2a6ccf1cd68851a80e6e6cf0c50bf06c8d1cbb Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
2017-05-31Merge "Adding PYTHON_ENABLE option"Carlos Goncalves1-0/+8
2017-05-31Create devstack plugin for osprofiler configurationYujun Zhang3-0/+122
Change-Id: Ifd6f90ea1d39d7385f1ab099bc7b0b2ed59efac5 Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>