Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 03 Nov 2019 11:48:28 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 240788] [NEW PORT] sysutils/ansible-sysrc: Ansible module to set sysvars in rc.conf
Message-ID:  <bug-240788-7788-JVAkQxMaFN@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-240788-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-240788-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D240788

Raphael Kubo da Costa <rakuco@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rakuco@FreeBSD.org

--- Comment #16 from Raphael Kubo da Costa <rakuco@FreeBSD.org> ---
Hi. I've tried building this port on Poudriere, and the ANSIBLE_MOD/PLIST_F=
ILES
lines fail:

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<phase=
: stage          >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D
=3D=3D=3D>  Staging for py36-ansible-sysrc-0.1
=3D=3D=3D>   py36-ansible-sysrc-0.1 depends on package: py36-ansible>0 - fo=
und
=3D=3D=3D>   py36-ansible-sysrc-0.1 depends on file: /usr/local/bin/python3=
.6 - found
=3D=3D=3D>   Generating temporary packing list
Unhandled error:
 Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/ansible/utils/path.py", line=
 77,
in makedirs_safe
    os.makedirs(b_rpath, mode)
  File "/usr/local/lib/python3.6/os.py", line 210, in makedirs
    makedirs(head, mode, exist_ok)
  File "/usr/local/lib/python3.6/os.py", line 210, in makedirs
    makedirs(head, mode, exist_ok)
  File "/usr/local/lib/python3.6/os.py", line 220, in makedirs
    mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: b'/nonexistent'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/ansible/config/manager.py", =
line
523, in update_config_data
    value, origin =3D self.get_config_value_and_origin(config, configfile)
  File "/usr/local/lib/python3.6/site-packages/ansible/config/manager.py", =
line
467, in get_config_value_and_origin
    value =3D ensure_type(value, defs[config].get('type'), origin=3Dorigin)
  File "/usr/local/lib/python3.6/site-packages/ansible/config/manager.py", =
line
110, in ensure_type
    makedirs_safe(value, 0o700)
  File "/usr/local/lib/python3.6/site-packages/ansible/utils/path.py", line=
 82,
in makedirs_safe
    raise AnsibleError("Unable to create local directories(%s): %s" %
(to_native(rpath), to_native(e)))
ansible.errors.AnsibleError: Unable to create local
directories(/nonexistent/.ansible/tmp): [Errno 13] Permission denied:
b'/nonexistent'


Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/ansible/utils/path.py", line=
 77,
in makedirs_safe
    os.makedirs(b_rpath, mode)
  File "/usr/local/lib/python3.6/os.py", line 210, in makedirs
    makedirs(head, mode, exist_ok)
  File "/usr/local/lib/python3.6/os.py", line 210, in makedirs
    makedirs(head, mode, exist_ok)
  File "/usr/local/lib/python3.6/os.py", line 220, in makedirs
    mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: b'/nonexistent'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/ansible/config/manager.py", =
line
523, in update_config_data
    value, origin =3D self.get_config_value_and_origin(config, configfile)
  File "/usr/local/lib/python3.6/site-packages/ansible/config/manager.py", =
line
467, in get_config_value_and_origin
    value =3D ensure_type(value, defs[config].get('type'), origin=3Dorigin)
  File "/usr/local/lib/python3.6/site-packages/ansible/config/manager.py", =
line
110, in ensure_type
    makedirs_safe(value, 0o700)
  File "/usr/local/lib/python3.6/site-packages/ansible/utils/path.py", line=
 82,
in makedirs_safe
    raise AnsibleError("Unable to create local directories(%s): %s" %
(to_native(rpath), to_native(e)))
ansible.errors.AnsibleError: Unable to create local
directories(/nonexistent/.ansible/tmp): [Errno 13] Permission denied:
b'/nonexistent'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/ansible-config-3.6", line 60, in <module>
    import ansible.constants as C
  File "/usr/local/lib/python3.6/site-packages/ansible/constants.py", line =
189,
in <module>
    config =3D ConfigManager()
  File "/usr/local/lib/python3.6/site-packages/ansible/config/manager.py", =
line
263, in __init__
    self.update_config_data()
  File "/usr/local/lib/python3.6/site-packages/ansible/config/manager.py", =
line
535, in update_config_data
    raise AnsibleError("Invalid settings supplied for %s: %s\n" % (config,
to_native(e)), orig_exc=3De)
ansible.errors.AnsibleError: Invalid settings supplied for DEFAULT_LOCAL_TM=
P:
Unable to create local directories(/nonexistent/.ansible/tmp): [Errno 13]
Permission denied: b'/nonexistent'

/bin/mkdir -p
/wrkdirs/usr/ports/sysutils/ansible-sysrc/work/stage$(ansible-config-3.6 du=
mp |
/usr/bin/egrep -o '/usr/local/share/py36-ansible/plugins/modules')
Unhandled error:
 Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/ansible/utils/path.py", line=
 77,
in makedirs_safe
    os.makedirs(b_rpath, mode)
  File "/usr/local/lib/python3.6/os.py", line 210, in makedirs
    makedirs(head, mode, exist_ok)
  File "/usr/local/lib/python3.6/os.py", line 210, in makedirs
    makedirs(head, mode, exist_ok)
  File "/usr/local/lib/python3.6/os.py", line 220, in makedirs
    mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: b'/nonexistent'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/ansible/config/manager.py", =
line
523, in update_config_data
    value, origin =3D self.get_config_value_and_origin(config, configfile)
  File "/usr/local/lib/python3.6/site-packages/ansible/config/manager.py", =
line
467, in get_config_value_and_origin
    value =3D ensure_type(value, defs[config].get('type'), origin=3Dorigin)
  File "/usr/local/lib/python3.6/site-packages/ansible/config/manager.py", =
line
110, in ensure_type
    makedirs_safe(value, 0o700)
  File "/usr/local/lib/python3.6/site-packages/ansible/utils/path.py", line=
 82,
in makedirs_safe
    raise AnsibleError("Unable to create local directories(%s): %s" %
(to_native(rpath), to_native(e)))
ansible.errors.AnsibleError: Unable to create local
directories(/nonexistent/.ansible/tmp): [Errno 13] Permission denied:
b'/nonexistent'


Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/ansible/utils/path.py", line=
 77,
in makedirs_safe
    os.makedirs(b_rpath, mode)
  File "/usr/local/lib/python3.6/os.py", line 210, in makedirs
    makedirs(head, mode, exist_ok)
  File "/usr/local/lib/python3.6/os.py", line 210, in makedirs
    makedirs(head, mode, exist_ok)
  File "/usr/local/lib/python3.6/os.py", line 220, in makedirs
    mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: b'/nonexistent'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/ansible/config/manager.py", =
line
523, in update_config_data
    value, origin =3D self.get_config_value_and_origin(config, configfile)
  File "/usr/local/lib/python3.6/site-packages/ansible/config/manager.py", =
line
467, in get_config_value_and_origin
    value =3D ensure_type(value, defs[config].get('type'), origin=3Dorigin)
  File "/usr/local/lib/python3.6/site-packages/ansible/config/manager.py", =
line
110, in ensure_type
    makedirs_safe(value, 0o700)
  File "/usr/local/lib/python3.6/site-packages/ansible/utils/path.py", line=
 82,
in makedirs_safe
    raise AnsibleError("Unable to create local directories(%s): %s" %
(to_native(rpath), to_native(e)))
ansible.errors.AnsibleError: Unable to create local
directories(/nonexistent/.ansible/tmp): [Errno 13] Permission denied:
b'/nonexistent'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/ansible-config-3.6", line 60, in <module>
    import ansible.constants as C
  File "/usr/local/lib/python3.6/site-packages/ansible/constants.py", line =
189,
in <module>
    config =3D ConfigManager()
  File "/usr/local/lib/python3.6/site-packages/ansible/config/manager.py", =
line
263, in __init__
    self.update_config_data()
  File "/usr/local/lib/python3.6/site-packages/ansible/config/manager.py", =
line
535, in update_config_data
    raise AnsibleError("Invalid settings supplied for %s: %s\n" % (config,
to_native(e)), orig_exc=3De)
ansible.errors.AnsibleError: Invalid settings supplied for DEFAULT_LOCAL_TM=
P:
Unable to create local directories(/nonexistent/.ansible/tmp): [Errno 13]
Permission denied: b'/nonexistent'

install  -m 555
/wrkdirs/usr/ports/sysutils/ansible-sysrc/work/ansible-freebsd-modules-cf37=
fc1e16fc03852abc8933e7959b22b51a5c90/library/sysrc
/wrkdirs/usr/ports/sysutils/ansible-sysrc/work/stage$(ansible-config-3.6 du=
mp |
/usr/bin/egrep -o '/usr/local/share/py36-ansible/plugins/modules')/sysrc
Unhandled error:
 Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/ansible/utils/path.py", line=
 77,
in makedirs_safe
    os.makedirs(b_rpath, mode)
  File "/usr/local/lib/python3.6/os.py", line 210, in makedirs
    makedirs(head, mode, exist_ok)
  File "/usr/local/lib/python3.6/os.py", line 210, in makedirs
    makedirs(head, mode, exist_ok)
  File "/usr/local/lib/python3.6/os.py", line 220, in makedirs
    mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: b'/nonexistent'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/ansible/config/manager.py", =
line
523, in update_config_data
    value, origin =3D self.get_config_value_and_origin(config, configfile)
  File "/usr/local/lib/python3.6/site-packages/ansible/config/manager.py", =
line
467, in get_config_value_and_origin
    value =3D ensure_type(value, defs[config].get('type'), origin=3Dorigin)
  File "/usr/local/lib/python3.6/site-packages/ansible/config/manager.py", =
line
110, in ensure_type
    makedirs_safe(value, 0o700)
  File "/usr/local/lib/python3.6/site-packages/ansible/utils/path.py", line=
 82,
in makedirs_safe
    raise AnsibleError("Unable to create local directories(%s): %s" %
(to_native(rpath), to_native(e)))
ansible.errors.AnsibleError: Unable to create local
directories(/nonexistent/.ansible/tmp): [Errno 13] Permission denied:
b'/nonexistent'


Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/ansible/utils/path.py", line=
 77,
in makedirs_safe
    os.makedirs(b_rpath, mode)
  File "/usr/local/lib/python3.6/os.py", line 210, in makedirs
    makedirs(head, mode, exist_ok)
  File "/usr/local/lib/python3.6/os.py", line 210, in makedirs
    makedirs(head, mode, exist_ok)
  File "/usr/local/lib/python3.6/os.py", line 220, in makedirs
    mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: b'/nonexistent'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/ansible/config/manager.py", =
line
523, in update_config_data
    value, origin =3D self.get_config_value_and_origin(config, configfile)
  File "/usr/local/lib/python3.6/site-packages/ansible/config/manager.py", =
line
467, in get_config_value_and_origin
    value =3D ensure_type(value, defs[config].get('type'), origin=3Dorigin)
  File "/usr/local/lib/python3.6/site-packages/ansible/config/manager.py", =
line
110, in ensure_type
    makedirs_safe(value, 0o700)
  File "/usr/local/lib/python3.6/site-packages/ansible/utils/path.py", line=
 82,
in makedirs_safe
    raise AnsibleError("Unable to create local directories(%s): %s" %
(to_native(rpath), to_native(e)))
ansible.errors.AnsibleError: Unable to create local
directories(/nonexistent/.ansible/tmp): [Errno 13] Permission denied:
b'/nonexistent'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/ansible-config-3.6", line 60, in <module>
    import ansible.constants as C
  File "/usr/local/lib/python3.6/site-packages/ansible/constants.py", line =
189,
in <module>
    config =3D ConfigManager()
  File "/usr/local/lib/python3.6/site-packages/ansible/config/manager.py", =
line
263, in __init__
    self.update_config_data()
  File "/usr/local/lib/python3.6/site-packages/ansible/config/manager.py", =
line
535, in update_config_data
    raise AnsibleError("Invalid settings supplied for %s: %s\n" % (config,
to_native(e)), orig_exc=3De)
ansible.errors.AnsibleError: Invalid settings supplied for DEFAULT_LOCAL_TM=
P:
Unable to create local directories(/nonexistent/.ansible/tmp): [Errno 13]
Permission denied: b'/nonexistent'

Switching to USES_PYTHON=3Dautoplist, it fails with:

=3D=3D=3D>   Generating temporary packing list
/bin/mkdir -p /wrkdirs/usr/ports/sysutils/ansible-sysrc/work/stage
install  -m 555
/wrkdirs/usr/ports/sysutils/ansible-sysrc/work/ansible-freebsd-modules-cf37=
fc1e16fc03852abc8933e7959b22b51a5c90/library/sysrc
/wrkdirs/usr/ports/sysutils/ansible-sysrc/work/stage/sysrc
=3D=3D=3D=3D> Compressing man pages (compress-man)
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
=3D=3D=3D=3D> Running Q/A tests (stage-qa)
=3D=3D=3D=3D> Checking for pkg-plist issues (check-plist)
=3D=3D=3D> Parsing plist
=3D=3D=3D> Checking for items in STAGEDIR missing from pkg-plist
Error: Orphaned: /sysrc
=3D=3D=3D> Checking for items in pkg-plist which are not in STAGEDIR
=3D=3D=3D> Error: Plist issues found.
*** Error code 1

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-240788-7788-JVAkQxMaFN>