enterprise-support team mailing list archive
-
enterprise-support team
-
Mailing list archive
-
Message #10845
[Bug 2110127] [NEW] samba-tool fails to set GPO MOTD on s390x
Public bug reported:
This was seen in autopkgtests[1] and only happens on s390x:
756s ## MOTD GPO tests (server only)
756s
756s ## Setting MOTD GPO text to "Welcome1"
756s WARNING: Using passwords on command line is insecure. Installing the setproctitle python module will hide these from shortly after program start.
756s ERROR(runtime): uncaught exception - (3221225480, 'An invalid HANDLE was specified.')
756s File "/usr/lib/python3/dist-packages/samba/netcmd/__init__.py", line 353, in _run
756s return self.run(*args, **kwargs)
756s ~~~~~~~~^^^^^^^^^^^^^^^^^
756s File "/usr/lib/python3/dist-packages/samba/netcmd/gpo.py", line 3852, in run
756s reg.increment_gpt_ini(machine_changed=True)
756s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
756s File "/usr/lib/python3/dist-packages/samba/policies.py", line 198, in increment_gpt_ini
756s self.__save_file(self.pol_dir % '', GPT_INI,
756s ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
756s out_data.read().encode('utf-8'))
756s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
756s File "/usr/lib/python3/dist-packages/samba/policies.py", line 99, in __save_file
756s self.conn.set_acl(file_name, self.fs_sd)
756s ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
756s File "/usr/lib/python3/dist-packages/samba/samba3/libsmb_samba_internal.py", line 128, in set_acl
756s self.set_sd(fnum, sd, sinfo)
756s ~~~~~~~~~~~^^^^^^^^^^^^^^^^^
The command is:
samba-tool gpo manage motd set "${GPO}" "${motd_text1}" -U
"Administrator%${adminpass}" || return 1
I also reported[2] it to samba-technical recently, but I think a bug
upstream is warranted. I tried debugging this a bit, but it ends up deep
in samba RPC calls, and I didn't spot any obvious endianess problem at
first glance.
This is importance "high" because it's blocking migration. It might be
best to skip this test on s390x for now, or ignore the failure there for
now.
1. https://objectstorage.prodstack5.canonical.com/swift/v1/AUTH_0f9aae918d5b4744bf7b827671c86842/autopkgtest-questing/questing/s390x/s/samba/20250507_110140_e7046@/log.gz
2. https://lists.samba.org/archive/samba-technical/2025-May/139410.html
** Affects: samba (Ubuntu)
Importance: High
Assignee: Andreas Hasenack (ahasenack)
Status: Triaged
** Tags: server-todo update-excuse
** Description changed:
This was seen in autopkgtests[1] and only happens on s390x:
756s ## MOTD GPO tests (server only)
- 756s
+ 756s
756s ## Setting MOTD GPO text to "Welcome1"
756s WARNING: Using passwords on command line is insecure. Installing the setproctitle python module will hide these from shortly after program start.
756s ERROR(runtime): uncaught exception - (3221225480, 'An invalid HANDLE was specified.')
756s File "/usr/lib/python3/dist-packages/samba/netcmd/__init__.py", line 353, in _run
756s return self.run(*args, **kwargs)
756s ~~~~~~~~^^^^^^^^^^^^^^^^^
756s File "/usr/lib/python3/dist-packages/samba/netcmd/gpo.py", line 3852, in run
756s reg.increment_gpt_ini(machine_changed=True)
756s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
756s File "/usr/lib/python3/dist-packages/samba/policies.py", line 198, in increment_gpt_ini
756s self.__save_file(self.pol_dir % '', GPT_INI,
756s ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
756s out_data.read().encode('utf-8'))
756s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
756s File "/usr/lib/python3/dist-packages/samba/policies.py", line 99, in __save_file
756s self.conn.set_acl(file_name, self.fs_sd)
756s ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
756s File "/usr/lib/python3/dist-packages/samba/samba3/libsmb_samba_internal.py", line 128, in set_acl
756s self.set_sd(fnum, sd, sinfo)
756s ~~~~~~~~~~~^^^^^^^^^^^^^^^^^
The command is:
- samba-tool gpo manage motd set "${GPO}" "${motd_text1}" -U
+ samba-tool gpo manage motd set "${GPO}" "${motd_text1}" -U
"Administrator%${adminpass}" || return 1
-
- I also reported it to samba-technical recently, but I think a bug upstream is warranted. I tried debugging this a bit, but it ends up deep in samba RPC calls, and I didn't spot any obvious endianess problem at first glance.
+ I also reported[2] it to samba-technical recently, but I think a bug
+ upstream is warranted. I tried debugging this a bit, but it ends up deep
+ in samba RPC calls, and I didn't spot any obvious endianess problem at
+ first glance.
This is importance "high" because it's blocking migration. It might be
best to skip this test on s390x for now, or ignore the failure there for
now.
- 1.
- https://objectstorage.prodstack5.canonical.com/swift/v1/AUTH_0f9aae918d5b4744bf7b827671c86842/autopkgtest-
- questing/questing/s390x/s/samba/20250507_110140_e7046@/log.gz
+ 1. https://objectstorage.prodstack5.canonical.com/swift/v1/AUTH_0f9aae918d5b4744bf7b827671c86842/autopkgtest-questing/questing/s390x/s/samba/20250507_110140_e7046@/log.gz
+ 2. https://lists.samba.org/archive/samba-technical/2025-May/139409.html
** Changed in: samba (Ubuntu)
Assignee: (unassigned) => Andreas Hasenack (ahasenack)
** Tags added: server-todo
** Description changed:
This was seen in autopkgtests[1] and only happens on s390x:
756s ## MOTD GPO tests (server only)
756s
756s ## Setting MOTD GPO text to "Welcome1"
756s WARNING: Using passwords on command line is insecure. Installing the setproctitle python module will hide these from shortly after program start.
756s ERROR(runtime): uncaught exception - (3221225480, 'An invalid HANDLE was specified.')
756s File "/usr/lib/python3/dist-packages/samba/netcmd/__init__.py", line 353, in _run
756s return self.run(*args, **kwargs)
756s ~~~~~~~~^^^^^^^^^^^^^^^^^
756s File "/usr/lib/python3/dist-packages/samba/netcmd/gpo.py", line 3852, in run
756s reg.increment_gpt_ini(machine_changed=True)
756s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
756s File "/usr/lib/python3/dist-packages/samba/policies.py", line 198, in increment_gpt_ini
756s self.__save_file(self.pol_dir % '', GPT_INI,
756s ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
756s out_data.read().encode('utf-8'))
756s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
756s File "/usr/lib/python3/dist-packages/samba/policies.py", line 99, in __save_file
756s self.conn.set_acl(file_name, self.fs_sd)
756s ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
756s File "/usr/lib/python3/dist-packages/samba/samba3/libsmb_samba_internal.py", line 128, in set_acl
756s self.set_sd(fnum, sd, sinfo)
756s ~~~~~~~~~~~^^^^^^^^^^^^^^^^^
The command is:
samba-tool gpo manage motd set "${GPO}" "${motd_text1}" -U
"Administrator%${adminpass}" || return 1
I also reported[2] it to samba-technical recently, but I think a bug
upstream is warranted. I tried debugging this a bit, but it ends up deep
in samba RPC calls, and I didn't spot any obvious endianess problem at
first glance.
This is importance "high" because it's blocking migration. It might be
best to skip this test on s390x for now, or ignore the failure there for
now.
1. https://objectstorage.prodstack5.canonical.com/swift/v1/AUTH_0f9aae918d5b4744bf7b827671c86842/autopkgtest-questing/questing/s390x/s/samba/20250507_110140_e7046@/log.gz
- 2. https://lists.samba.org/archive/samba-technical/2025-May/139409.html
+ 2. https://lists.samba.org/archive/samba-technical/2025-May/139410.html
--
You received this bug notification because you are a member of Ubuntu
Server/Client Support Team, which is subscribed to samba in Ubuntu.
Matching subscriptions: Ubuntu Server/Client Support Team
https://bugs.launchpad.net/bugs/2110127
Title:
samba-tool fails to set GPO MOTD on s390x
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/2110127/+subscriptions