Renaming a config entry as it causes a name conflict with
the latest version of oslo utils introduced during the stein rebase
Change-Id: Idc581b7dc389b00863461f2b30b7f6ae283ffdc5
Story: 2004765
Task: 28883
Signed-off-by: Tyler Smith <tyler.smith@windriver.com>
Flake8 currently ignores do not use mutable default arguments error
Enable B006 for more thorough testing of code
Change-Id: I5b08a56f945158c3b3c23574c048363e59da6001
Story: 2004515
Task: 30172
Signed-off-by: Eric Barrett <eric.barrett@windriver.com>
Added service domain for cluster host interface and service for
cluster host IP in the SM database.
Removed references of infrastructure interface.
Story: 2004273
Task: 29474
Change-Id: I6223047e9453eba83ea8b4ecf4db739d0f7d7665
Signed-off-by: Teresa Ho <teresa.ho@windriver.com>
4 services are enabled: sm-daemon, sm-api, sm-watchdog, sm-eru.
The same sm services running in deploy environment.
Test:
pass stack.sh execution with sm services enabled
Story: 2003160
Task: 29239
Change-Id: Ibbe1757e37998ff1c620f66dd97fabf24c887c1f
Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com>
For the AIO-DX configuration we have a problem where we can't run with
a single mariadb replica and we can't run with two mariadb replicas and
a garbd daemon like we do on the full configuration. (See the commit
message for the Depends-On commit for more info.)
Accordingly, add entries for the database monitor into the SM database.
Change-Id: Ibd28fb99eebb8b72a205d2626e49c4e2db4f01dd
Story: 2004712
Task: 30410
Signed-off-by: Chris Friesen <chris.friesen@windriver.com>
Depends-On: https://review.openstack.org/650288
This builds, installs and cleans some of the SM components, plus adds
a DevStack job and a build.sh script to build components outside DevStack.
It uses the 'new' DevStack base job flock-devstack-base directly.
Also some interesting work-arounds were required to build sm-common and sm-db,
need to sort out the differences between CentOS 7.5 and Ubuntu Xenial.
Fixed a couple of occurrances of this error:
sm_db_service_domain_neighbors.c:311:25: error: ISO C++ forbids
comparison between pointer and integer [-Werror=permissive]
if( '\0' != record->orchestration )
^~~~~~~~~~~~~
02Apr2019 - Add new skips for flake8 after upstream release
03Apr2019 - Merge with https://review.openstack.org/#/c/647490/2, at this point
there is not much reason to do this in two steps.
Change-Id: I33c44a764295e8e0a7ae4771ea02e950f06bf2a2
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
This update removes pike and master wheel and/or image files,
as these have been replaced with stable/dev.
Change-Id: I4e05c45bfdeb3c9d6d44d944f471319141cfe560
Story: 2005248
Task: 30325
Signed-off-by: Don Penney <don.penney@windriver.com>
Flake8 is failing due to bugbear updating with new error codes:
B009: Do not call getattr with a constant attribute value
B010: Do not call setattr with a constant attribute value
Ignore them for now
Lock down bugbear version to prevent further Zuul issues
Change-Id: Idf4f60b51a3362608917dfaf443b0444e6aa685c
Signed-off-by: Eric Barrett <eric.barrett@windriver.com>
Removing the following services
aodh-api
aodh-evaluator
aodh-listener
aodh-notifier
ceilometer-agent-notification
cinder-api
cinder-backup
cinder-scheduler
cinder-volume
glance-api
glance-registry
gnocchi-api
gnocchi-metricd
heat-api
heat-api-cfn
heat-api-cloudwatch
heat-engine
ironic-api
ironic-conductor
ironic-tftp-ip
magnum-api
magnum-conductor
murano-api
murano-engine
murano-rabbit
neutron-server
nova-api
nova-api-proxy
nova-compute
nova-conductor
nova-console-auth
nova-novnc
nova-placement-api
nova-scheduler
nova-serialproxy
panko-api
The integer indices have not been reset.
SM seems to work even with the gaps in the index counters.
The counter values should be cleaned up in a later
review.
Story: 2004764
Task: 30022
Change-Id: Ie4cb66cbcfb5bea06f91e782692195a0280f7176
Signed-off-by: Al Bailey <Al.Bailey@windriver.com>
The reason why swact is failing is because ceph-radosgw is sometimes
enabled before ceph-mon has started.
Since ceph-mon is not running, ceph-radosgw will be disabled.
The solution implemented is to add dependencies so that
ceph-radosgw starts after ceph-mon and stops before ceph-mon.
Closes-Bug: 1818095
Change-Id: I4cd600422ff3cb2edc1e9f21e9b827e99731af37
Signed-off-by: Elena Taivan <elena.taivan@windriver.com>
As part of setting up Keystone authentication with Docker registry, a
token server needs to be deployed and managed by SM. This commit adds
the entries for the Docker registry token server into the SM database.
Story: 2002840
Task: 22783
Depends-On: https://review.openstack.org/#/c/641358/
Change-Id: I8aee0bf04ea8180cec333cc68b5b55db04b776c1
Signed-off-by: Jerry Sun <jerry.sun@windriver.com>
The sm_hw is initialized too late to cause a few error log messages:
Failed to find thread information.
Failed to audit hardware state of interface (lo), error=FAILED
Change-Id: Ie7f813ff9a7900785e6d2af0ad5a75edc0cbf7c0
Partial-Bug: 1816764
Signed-off-by: Bin Qian <bin.qian@windriver.com>
In some cases sm will need to adjust its process priority. This
change enables the configuring sm priority as part of sm at runtime
Partial-Bug: 1816764
Change-Id: I860759621c0d1389ca5a3c947d7973c185274bdd
Signed-off-by: Bin Qian <bin.qian@windriver.com>
During initial controller configuration, the puppet manifest starts
the DRBD service in order to perform necessary config steps before
SM is launched. During shutdown, systemd tries to stop the DRBD
service ahead of SM, but because it is still in use, there are a
number of DRBD state change failures reported on the console.
This update adds After=drbd.service to the sm.service config file
to ensure SM is shutdown first, avoiding these failures.
Change-Id: I0af0bba59f722d268bd6a5bc3f68e8defae9d191
Story: 2004520
Task: 29397
Signed-off-by: Don Penney <don.penney@windriver.com>
Update conf.py for release notes to include the project
variable, set to the project name. This is so the string
above the left nav renders the project name.
Story: 2004900
Task: 29228
Change-Id: I6b33864e93ae709c8030c7714e036a8ea0d65643
Signed-off-by: Kristal Dale <kristal.dale@intel.com>
Adding new domain event SM_SERVICE_DOMAIN_EVENT_CHANGING_LEADER
to handle an on demand switching of service scheduler leader.
Closes-Bug: 1812108
Change-Id: I6796d8efcb1ef0c7fa835ed34028c8e6a2b5dcae
Signed-off-by: Bin Qian <bin.qian@windriver.com>
h/w subsystem is mistakenly initialized twice. It causes the
interface operational state changed events not being passed to
the listener. In the event an interface operational state changed,
i.e, cable is pulled, the system could not react to it.
Change-Id: I014d25befda536265c9c588a156ce411d01147cf
Closes-Bug: 1812019
Signed-off-by: Bin Qian <bin.qian@windriver.com>
the old source code which populate "V1" tables are no longer being used
in the current stx-ha design architecture.
Remove list:
service-mgmt/sm-db-1.0.0/upgrades/
service-mgmt/sm-db-1.0.0/scripts/sm-db-populate.script
service-mgmt/sm-db-1.0.0/patches/*install.patch
service-mgmt/sm-db-1.0.0/database/sm_database.xlsb
service-mgmt-tools/sm-tools/sm-tools/sm-patch.py
Story: 2004752
Task: 28842
Change-Id: I9f230f900baafcb8495d8f7ed739bf8e182abae5
Signed-off-by: SidneyAn <ran1.an@intel.com>
This commit adds a new resource helmrepository-fs and its dependency
in SM.
Story: 2004520
Task: 28343
Change-Id: Ia2be180a15b27f08f8fa7a8ac32f8612be8a258d
Signed-off-by: Angie Wang <angie.wang@windriver.com>
This patch adds compiler flags to improve the security of STX code.
Flags added:
Format string vulnerabilities: CFLAGS="-Wformat -Wformat-security"
Compiler will treat string format warnings as errors,
so at compiling level, buffer overflow is avoided.
Story: 2004380
Task: 28823
Signed-off-by: Luis Botello <luis.botello.ortega@intel.com>
Reviewed-by: Erich Cordoba <erich.cordoba.malibran@intel.com>
Victor Rodriguez <vm.rod25@gmail.com>
Suggested-by: Victor Rodriguez <vm.rod25@gmail.com>
Erich Cordoba <erich.cordoba.malibran@intel.com>
Change-Id: I45a0002288db434bc79c477c231f900e477347a1
doc index.rst:
1. Update intro sentence to read as a complete sentence
2. Remove unused toctree
3. Correct heading levels (impacting side nav and correct rendering
of content)
4. Remove "Indices and Tables" section: genindex page not used,
search searches only index (not useful here)
api-ref index.rst:
1. Update intro sentence to read as a complete sentence
2. Update text around search link for consistency (move
to follow intro)
3. Add heading before toctree for consistency with other pages
releasenotes index.rst:
1. Standardize page title reST markup
2. Remove search (make consistent with other openstack release note
pages)
Story: 2004737
Task: 28801
Change-Id: I83d023c57881e03639ff6bb85b256e53f4205817
Signed-off-by: Kristal Dale <kristal.dale@intel.com>
When controller-1 reboot in an AIO-DX/DC setup, mgmt/infra network will
temporarily go down. This is expected. However, SM couldn't determine
the interface going up again when the controller-1 reboot after unlock
the first time.
Add code to reverify the state of down interfaces when heartbeat
message is received.
Closes-Bug: 1809315
Change-Id: I02c9b6bf35539df2d36ad6b665b0a5ce8f2a1c75
Signed-off-by: Bin Qian <bin.qian@windriver.com>
If in_transition is false, the result of in_transition is always false
with '&&', so we should be changed '&&' to '||'.
Change-Id: I8c18c052c94ebfdbcbcec215d64a8bceeda34f27
Closes-Bug: #1809412
After using rabbitmq-server-config package to package config files
for rabbitmq-server package, we can remove related patches of it.
We need to let SM to call our custom ocf file instead of default one
installed by rabbitmq-server package.
Story: 2003768
Task: 28042
Change-Id: I12e132831d064daa00f26d44df505870a71c45ef
Signed-off-by: zhipengl <zhipengs.liu@intel.com>
The compute personality & subfunction has been changed to
worker, and compute_reserved.conf has been rename to
worker_reserved.conf.
This update changes sm dependencies to compute
personality and compute_reserved.conf.
Tests Performed:
Non-containerized deployment
AIO-SX: Sanity and Nightly automated test suite
AIO-DX: Sanity and Nightly automated test suite
2+2 System: Sanity and Nightly automated test suite
2+2 System: Horizon Patch Orchestration
Kubernetes deployment:
AIO-SX: Create, delete, reboot and rebuild instances
2+2+2 System: worker nodes are unlock enable and no alarms
Story: 2004022
Task: 27013
Depends-On: https://review.openstack.org/#/c/624452/
Change-Id: I0d6fac17cb5b7fa1e2cc757ea82b7c0385b9a6ee
Signed-off-by: Tao Liu <tao.liu@windriver.com>
Uses cluster hbs info to determine which controller to be the survivor when
communication lost between 2 controllers with the new rules:
1. If a controller is the only controller to connect to storage-0,
it is choosen to be the survivor
2. A controller that can reach more nodes is choosen to be the survivor.
3. A controller is choosen to be failed if it cannot reach any nodes.
Story: 2003577
Task: 27704
Change-Id: I79659e1a788b865536500fc125fd65ae2f34123d
Signed-off-by: Bin Qian <bin.qian@windriver.com>