Good afternoon
We are trying to *build the software factory image (qcow2)* using the
*build_image.sh* *script* (like it is described in
https://softwarefactory-project.io/docs/deepdive.html#the-image), but we
encountered a* problem with the "sf_version"* *parameter* when executing
the ansible yaml inside* sf-base role*
(/var/lib/sf/roles/install/C7.0-2.6.0/softwarefactory/usr/share/sf-config/ansible/
*roles/sf-base/defaults/main.yml*).
The error that we received was:
__________________________________________________________________________________________________________________________________________________________________
TASK [sf-base : Install sf-release if needed]
**********************************
task path: /usr/share/sf-config/ansible/roles/sf-base/tasks/install.yml:13
fatal: [localhost]: FAILED! => {
"failed": true,
"msg": "the field 'args' has an invalid value, which appears to include
a variable that is undefined. The error was:
https://softwarefactory-project.io/repos/sf-release-{{ sf_version }}.rpm:
'sf_version' is undefined\n\nThe error appears to have been in
'/usr/share/sf-config/ansible/roles/sf-base/tasks/install.yml': line 13,
column 3, but may\nbe elsewhere in the file depending on the exact syntax
problem.\n\nThe offending line appears to be:\n\n\n- name: Install
sf-release if needed\n ^ here\n"
}
to retry, use: --limit @/ansible-install-playbook.retry
PLAY RECAP
*********************************************************************
localhost : ok=4 changed=1 unreachable=0 failed=1
################
TRAP TRIGGERED !
################
PATH=/bin/:/sbin:$PATH LANG=C LC_ALL=C LC_CTYPE=C LANGUAGE=C chroot
"$chdir" "$@" returned 2
umount: /var/lib/sf/roles/install/master/softwarefactory/dev/: not mounted
umount: /var/lib/sf/roles/install/master/softwarefactory/sys/: not mounted
###########
END OF TRAP
###########
(STEP1) FAILED
_________________________________________________________________________________________________________________________________________________________________
Therefore we tried to solve this problem modifying the file inside the path
"/var/lib/sf/roles/install/C7.0-2.6.0/softwarefactory/usr/share/sf-config/ansible/
*roles/sf-base/defaults/main.ym*l" and we set "master" as "sf_version"
parameter like so:
_____________________________________________________________________
*sf_version: "master"*
sf_release_url: "https://softwarefactory-project.io/repos/sf-release-{{
sf_version }}.rpm"
___________________________________________________________
*Finally we set BUILD_QCOW=1 as environment variable and the qcow image has
been generated.*
Our question is whether we are doing this in the correct way or we are
missing something?
Thanks in advance.
Cheers
_______________________________________________
Softwarefactory-dev mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/softwarefactory-dev