Extract systemvm.iso using bsdtar#3536
Conversation
|
@cl-k-takahashi how about we add bsdtar as the dependency for both debian/rpm packages? That way we can enforce CloudStack to use bsdtar? |
@rhtyd I agree. Should I remove all 'mount' command calls from injectkeys.sh? |
|
While bsdtar is available in Ubuntu and CentOS 7 official repository, it's in EPEL in CentOS 6. |
|
I added bsdtar as the dependency for rpm(CentOS7)/debian packages. |
|
@cl-k-takahashi I've moved the milestone to 4.14, in which we'll remove support for CentOS6 (reference https://markmail.org/message/eenfpyya2wfgd2gw), then your PR will be acceptable. Thanks. |
|
@blueorangutan package |
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-271 |
c4755a8 to
afb9115
Compare
Signed-off-by: Kai Takahashi <k-takahashi@creationline.com>
bsdtar can extract iso images without mounting. Signed-off-by: Kai Takahashi <k-takahashi@creationline.com>
afb9115 to
99acfcf
Compare
|
Solved a conflict: A dependency removed from debian/control: python-netaddr was removed from the debian dependency in master branch. |
|
@blueorangutan package |
|
@cl-k-takahashi a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✖centos6 ✔centos7 ✔debian. JID-298 |
|
@blueorangutan test centos7 vmware-65u2 |
|
@rhtyd a Trillian-Jenkins test job (centos7 mgmt + vmware-65u2) has been kicked to run smoke tests |
|
Trillian test result (tid-389)
|
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✖centos6 ✔centos7 ✔debian. JID-374 |
|
@blueorangutan package |
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✖centos6 ✔centos7 ✔debian. JID-434 |
|
@blueorangutan test centos7 vmware-65u2 |
|
@rhtyd a Trillian-Jenkins test job (centos7 mgmt + vmware-65u2) has been kicked to run smoke tests |
|
@blueorangutan test centos7 vmware-65u2 |
|
@andrijapanicsb a Trillian-Jenkins test job (centos7 mgmt + vmware-65u2) has been kicked to run smoke tests |
andrijapanicsb
left a comment
There was a problem hiding this comment.
LGTM
tested manually with custom keys (VMware).
|
@DaanHoogland kindly take a look if you can LGTM this one. |
|
Trillian test result (tid-684)
|
|
code looks good, nice cleanup. It does change the logic concerning file permissions, though. The logic looks fine and *should {tm} work on all platforms ;), @andrijapanicsb. If you tested it, I'm fine with it. |
|
Yes, manually tested by injecting custom keys manually running the same command/script and verified the modified pub key present in SSVM. |
|
👍 master or first to 4.13? |
|
I've tested master, but this is a change, not bugfix, so I say only master @DaanHoogland? |
|
ok, go ahead, @andrijapanicsb ! looks good |
|
Mergng based on 2 x reviews and manual testing and regression testing (no failures). |
This reverts commit 8a55c93.
|
@cl-k-takahashi Can you please see the comments in #3800 and resubmit this? I don't think the change will be big, but it a very specific error during upgrades that needs addressing. Sorry for the invconvenience. |
This reverts commit 8a55c93.
* Extract systemvm.iso using bsdtar if available. Signed-off-by: Kai Takahashi <k-takahashi@creationline.com> * New dependency for CentOS 7 and Debian: bsdtar bsdtar can extract iso images without mounting. Signed-off-by: Kai Takahashi <k-takahashi@creationline.com> * Remove all 'mount' and 'umount' command call(s). Signed-off-by: Kai Takahashi <k-takahashi@creationline.com>
This reverts commit 8a55c93.
Signed-off-by: Kai Takahashi <k-takahashi@creationline.com>
Signed-off-by: Kai Takahashi <k-takahashi@creationline.com>
Signed-off-by: Kai Takahashi k-takahashi@creationline.com
Description
Extract systemvm.iso using bsdtar in injectkeys.sh if available.
With bsdtar, injectkeys.sh doesn't need to mount systemvm.iso and works even on unprivileged containers.
Types of changes
Screenshots (if appropriate):
How Has This Been Tested?
Checked that a new key is injected to systemvm.iso by running injectkeys.sh manually.