Distributed cloud: Subcloud deploy fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
High
|
Jessica Castelino |
Bug Description
Brief Description
-----------------
dcmanager generates a copy of the config file supplied by the user in "dcmanager subcloud add" command. The deploy config generated by dcmanager does not properly override the previously created file which results in the presence of invalid data at the end of the generated file.
Severity
--------
Major
Steps to Reproduce
------------------
1) Supply a wrong deploy config file while running the "dcmanager subcloud add" command
2) Delete the subcloud
3) Re-add the subcloud with a new config file which is considerably smaller in size
Expected Behavior
------------------
The files generated by dcmanager must be identical to the ones supplied by the user
Actual Behavior
----------------
The files generated by dcmanager has some invalid data appended to it
Reproducibility
---------------
100% Reproducible
System Configuration
-------
Distributed Cloud
Branch/Pull Time/Commit
-------
1st June, 2020
Last Pass
---------
Unknown
Test Activity
-------------
Feature Testing
Workaround
----------
Delete files under /opt/dc/ansible and re-run the command
Changed in starlingx: | |
assignee: | nobody → Jessica Castelino (jcasteli) |
tags: | added: stx.distcloud |
Changed in starlingx: | |
importance: | Undecided → High |
tags: | added: stx.4.0 |
Reviewed: https:/ /review. opendev. org/734675 /git.openstack. org/cgit/ starlingx/ distcloud/ commit/ ?id=70f4dc8537a e89cf2eb70a78bd a64073f13b02a1
Committed: https:/
Submitter: Zuul
Branch: master
commit 70f4dc8537ae89c f2eb70a78bda640 73f13b02a1
Author: Jessica Castelino <email address hidden>
Date: Tue Jun 9 13:43:04 2020 -0400
Subcloud deploy fails
Deploy config generated by dcmanager does not truncate the existing
file after it has been overridden. This leaves some invalid content
at the end of the newly generated file. Fixes have been made for this.
Change-Id: I6c7e7fbacb1ee3 23c3675076083e0 46498698425
Closes-Bug: 1882826
Signed-off-by: Jessica Castelino <email address hidden>