On June 6, 2017 2:07 pm, Manu Sánchez wrote:
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

Greeting,

The documentation needs to be updated since the project architecture
changed quite a bit, namely it is now using rpm packages instead of
a pre-built image. This is actually a work in progress:
 https://softwarefactory-project.io/r/8424

In the meantime, the fix you made is correct, though you built the
master version (2.6) which is still in developpment. If possible, it's
probably better to start over using the last stable version:

SF_VER=C7.0-2.5.0 SF_REPO=sf-2.5-el7-release BUILD_QCOW=1 ./build_image.sh

Or use the prebuilt image:

http://46.231.132.68:8080/v1/AUTH_b50e80d3969f441a8b7b1fe831003e0a/sf-images/softwarefactory-C7.0-2.5.0.img.qcow2
http://46.231.132.68:8080/v1/AUTH_b50e80d3969f441a8b7b1fe831003e0a/sf-images/softwarefactory-C7.0-2.5.0.digest

Regards,
-Tristan

Attachment: pgpWtAQWCZDrB.pgp
Description: PGP signature

_______________________________________________
Softwarefactory-dev mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/softwarefactory-dev

Reply via email to