upload artifact tooling fails with upload-artifacts: command not found
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
High
|
Rajesh Tailor |
Bug Description
With change [1] upload artifacts tooling was updated for swiftless undercloud.
I have followed below steps to upload puppet-nova changes through this tooling.
(i) Create 'puppet-modules' directory in /home/stack on undercloud and clone puppet-nova repo.
```
(undercloud) [stack@undercloud ~]$ mkdir puppet-modules
git clone https:/
```
(ii) Then did required puppet changes in above cloned repo.
(iii) Then tried to use upload-
```
(undercloud) [stack@undercloud ~]$ upload-
Creating tarball...
Tarball created.
/usr/bin/
```
After creating upload-artifacts script in /usr/bin same as [2] and tried running upload-
It failed with different error now.
```
(undercloud) [stack@undercloud ~]$ upload-
Creating tarball...
Tarball created.
renamed '/tmp/puppet-
Creating heat environment file: /home/stack/
Traceback (most recent call last):
File "<stdin>", line 6, in <module>
NameError: name 'files' is not defined
```
After adding below line after [3] in upload-artifacts script.
files = ['$FILES']
Finally it did work.
[1] https:/
[2] https:/
[3] https:/
Changed in tripleo: | |
assignee: | nobody → Rajesh Tailor (ratailor) |
Changed in tripleo: | |
status: | New → Confirmed |
importance: | Undecided → High |
milestone: | none → xena-2 |
Changed in tripleo: | |
status: | Confirmed → In Progress |
description: | updated |
Changed in tripleo: | |
milestone: | xena-2 → xena-3 |
Actually you can just create the tar archive and add a parameter to one of your environments. That would simply do it.
tar --transform "s|puppet- modules| etc/puppet/ modules| " -czf "puppet- modules. tar.gz" puppet-modules
parameter_defaults: tFILEs: [<path of the tar file>]
DeployArtifac