ha/service-mgmt/sm-db-1.0.0/upgrades
Scott Little df58f0ba0f Shorten "addons/wr-cgcs/layers/cgcs" to just "stx"
Part of the project to remove cgcs references.
Replace and shorten the path the needlessly long and
complex "addons/wr-cgcs/layers/cgcs" path with just "stx".

This update just fixes up paths found in scripts, comments
and config files.

Depends-On: https://review.openstack.org/579954
Depends-On: https://review.openstack.org/579957
Depends-On: https://review.openstack.org/580170
Change-Id: Id1fbdab33110518634d1b4a85b1c8684a0f45925
Signed-off-by: Scott Little <scott.little@windriver.com>
2018-07-04 11:00:45 -04:00
..
new-service StarlingX open source release updates 2018-05-31 07:36:26 -07:00
README Shorten "addons/wr-cgcs/layers/cgcs" to just "stx" 2018-07-04 11:00:45 -04:00
sm_db_upgrade.patch StarlingX open source release updates 2018-05-31 07:36:26 -07:00

The SM database can be generated off of an excel spreadsheet
(cgcs-root/stx/stx-ha/service-mgmt/sm-db-1.0.0/database/sm_database.xlsb)

Instructions:
1. Update the SM excel spreadsheet (sm_database.xlsb) with your changes,
2. Update the SM database (sm.db.v1) with your changes:
	sqlite3 sm.db.v1
	.tables
    apply our changes using SQL statements
    record the SQL statements for Crucible review (i.e. in commit.txt and in Crucible)
    .quit
3. Update Packstack "sm-configure" calls were appropriate.
4. Update Packstack "sm-provision" and "sm-deprovision" calls were appropriate.
5. If your service runs during Packstack manifest apply, you may need to make
   sure it is stopped before SM takes over.

See packstack/puppet/templates/platform_sm_stopresources.pp
See packstack/puppet/templates/platform_sm_stopservice.pp

OBSOLETE:

	CONTROLLER=192.168.204.4

	mkdir -p /var/lib/sm/patches/

	scp new-service root@${CONTROLLER}:/etc/init.d
	scp sm_db_upgrade.patch root@${CONTROLLER}:/var/lib/sm/patches/

	chmod 777 /etc/init.d/new-service
	sm-patch database running sm_db_upgrade.patch