Bug 1411084
Summary: | deploy 3rd party artifacts are broken | ||
---|---|---|---|
Product: | Red Hat OpenStack | Reporter: | Alon Dotan <alon1.dotan> |
Component: | openstack-tripleo-heat-templates | Assignee: | Tim Rozet <trozet> |
Status: | CLOSED ERRATA | QA Contact: | Gurenko Alex <agurenko> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 10.0 (Newton) | CC: | achernet, agurenko, aschultz, dbecker, emacchi, jjoyce, jschluet, mburns, morazi, rhel-osp-director-maint, shardy, trozet |
Target Milestone: | z4 | Keywords: | Triaged, ZStream |
Target Release: | 10.0 (Newton) | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-09-06 17:09:30 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Alon Dotan
2017-01-08 10:07:07 UTC
This was fixed by https://review.openstack.org/#/c/409822/ Closing it. This script is not supported by OSP Director, therefore it was fixed upstream so users can pull a new version of the script. *** Bug 1411085 has been marked as a duplicate of this bug. *** (In reply to Emilien Macchi from comment #2) > Closing it. This script is not supported by OSP Director, therefore it was > fixed upstream so users can pull a new version of the script. this script is packed in the rpms that redhat installed for the director, we didnt imported it from the community our self's, there is any other scripts that redhat supply and not supporting in the OSP director? This seems to have been captured as part of BZ#1430726 Can't make it to work. I'm using build 2017-06-19.1 and openstack-tripleo-heat-templates-5.2.0-20. What is the correct usage of this feature? I'm passing extra-config.yaml with following content: parameter_defaults: DeployArtifactURLs: - https://dl.fedoraproject.org/pub/epel/7/x86_64/h/htop-2.0.2-1.el7.x86_64.rpm but package is not installed on the overcloud nodes after the deployment. No errors are found in logs and deployment completes successfully. So, I'm been looking into this and found the problem. Right now deploy-artifacts.yaml that contains this code: resources: DeployArtifacts: type: OS::Heat::SoftwareConfig properties: group: script inputs: - name: artifact_urls default: {list_join: [' ', {get_param: DeployArtifactURLs}]} config: {get_file: ./deploy-artifacts.sh} is doing export of the artifac_urls that supposed to be used by ./deploy-artifacts.sh in following section: if [ -n "$artifact_urls" ]; then ... else echo "No artifact_urls was set. Skipping..." fi and this code while run manually goes to echo "No artifact_urls was set. Skipping..." all the time. So with a little playing around (http://pastebin.test.redhat.com/497947) and looking into man bash I've found this: (from man bash) Array variables may not (yet) be exported. so artifact_urls needs to be passed to the script in some other way. FYI, using this to install rpms doesn't work (try tar.gz instead). RPMs installs were fixed in master by https://review.openstack.org/#/c/472847/. We actually use this under the covers with the upload-puppet-modules (via upload-swift-artifacts) helper script. http://hardysteven.blogspot.com/2016/08/tripleo-deploy-artifacts-and-puppet.html parameters_defaults: DeployArtifactURLs: - http://url1/file1.tar.gz - http://url2/file2.tar.gz (In reply to Alex Schultz from comment #12) > FYI, using this to install rpms doesn't work (try tar.gz instead). RPMs > installs were fixed in master by https://review.openstack.org/#/c/472847/. > We actually use this under the covers with the upload-puppet-modules (via > upload-swift-artifacts) helper script. > http://hardysteven.blogspot.com/2016/08/tripleo-deploy-artifacts-and-puppet. > html > > > parameters_defaults: > DeployArtifactURLs: > - http://url1/file1.tar.gz > - http://url2/file2.tar.gz So, I've been trying today to pass following: DeployArtifactURLs: - 'https://nmap.org/dist/nmap-7.60.tgz' and I was expecting to see this file, well anywhere, but no traces whatsoever, can my comment above still be valid? This bug was for multiple files. But what you would see with that file is that it is extracted to /. So there should be a /nmap-7.60 directory on the node with the contents of the tgz extracted into it. The actual .tgz gets deleted during the installation. (In reply to Alex Schultz from comment #14) > This bug was for multiple files. But what you would see with that file is > that it is extracted to /. So there should be a /nmap-7.60 directory on the > node with the contents of the tgz extracted into it. The actual .tgz gets > deleted during the installation. Yeah, I've re-trying from scratch now, I've tried it manually today and it worked, but I've been looking into wrong location for results, it's just now I saw that it's going to /. Is it a good idea to unpack to /? Anyway, re-trying with multiple archives now and Steve pushed patch fixing rpm installation as well. That's how it's always worked because tars are relative. That part is unchanged in this bug, it's just being able to provide more than one that was broken Yes, I've successfully retried it. Both archives ended up at /. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2017:2654 |