Trove instance create fail when filesystem is xfs

Bug #2028033 reported by likui
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Trove Integration
New
Undecided
Unassigned

Bug Description

log:

2023-07-18 07:36:51.961 1046 CRITICAL root [-] Unhandled error: oslo_concurrency.processutils.ProcessExecutionError: Unexpected error while running command.
Command: sudo xfs_admin -l /dev/vdb
Exit code: 1
Stdout: ''
Stderr: 'xfs_admin: /dev/vdb is not a valid XFS filesystem (unexpected SB magic number 0x00000000)\nUse -F to force a read attempt.\n'
2023-07-18 07:36:51.961 1046 ERROR root Traceback (most recent call last):
2023-07-18 07:36:51.961 1046 ERROR root File "/usr/local/bin/guest-agent", line 8, in <module>
2023-07-18 07:36:51.961 1046 ERROR root sys.exit(main())
2023-07-18 07:36:51.961 1046 ERROR root File "/opt/guest-agent-venv/lib/python3.8/site-packages/trove/cmd/guest.py", line 77, in main
2023-07-18 07:36:51.961 1046 ERROR root device.format()
2023-07-18 07:36:51.961 1046 ERROR root File "/opt/guest-agent-venv/lib/python3.8/site-packages/trove/guestagent/volume.py", line 242, in format
2023-07-18 07:36:51.961 1046 ERROR root self._check_format()
2023-07-18 07:36:51.961 1046 ERROR root File "/opt/guest-agent-venv/lib/python3.8/site-packages/trove/guestagent/volume.py", line 230, in _check_format
2023-07-18 07:36:51.961 1046 ERROR root self.volume_fs.check_format(self.device_path)
2023-07-18 07:36:51.961 1046 ERROR root File "/opt/guest-agent-venv/lib/python3.8/site-packages/trove/guestagent/volume.py", line 152, in check_format
2023-07-18 07:36:51.961 1046 ERROR root stdout, stderr = utils.execute(
2023-07-18 07:36:51.961 1046 ERROR root File "/opt/guest-agent-venv/lib/python3.8/site-packages/oslo_concurrency/processutils.py", line 438, in execute
2023-07-18 07:36:51.961 1046 ERROR root raise ProcessExecutionError(exit_code=_returncode,
2023-07-18 07:36:51.961 1046 ERROR root oslo_concurrency.processutils.ProcessExecutionError: Unexpected error while running command.
2023-07-18 07:36:51.961 1046 ERROR root Command: sudo xfs_admin -l /dev/vdb
2023-07-18 07:36:51.961 1046 ERROR root Exit code: 1
2023-07-18 07:36:51.961 1046 ERROR root Stdout: ''
2023-07-18 07:36:51.961 1046 ERROR root Stderr: 'xfs_admin: /dev/vdb is not a valid XFS filesystem (unexpected SB magic number 0x00000000)\nUse -F to force a read attempt.\n'
2023-07-18 07:36:51.961 1046 ERROR root
2023-07-18 07:37:01.192 1067 INFO trove.cmd.guest [-] Creating user and group for database service
2023-07-18 07:37:01.197 1067 DEBUG oslo_concurrency.processutils [-] Running cmd (subprocess): sudo groupadd --gid 1001 database execute /opt/guest-agent-venv/lib/python3.8/site-packages/oslo_concurrency/processutils.py:384
2023-07-18 07:37:01.568 1067 DEBUG oslo_concurrency.processutils [-] CMD "sudo groupadd --gid 1001 database" returned: 9 in 0.371s execute /opt/guest-agent-venv/lib/python3.8/site-packages/oslo_concurrency/processutils.py:422
2023-07-18 07:37:01.573 1067 DEBUG oslo_concurrency.processutils [-] 'sudo groupadd --gid 1001 database' failed. Not Retrying. execute /opt/guest-agent-venv/lib/python3.8/site-packages/oslo_concurrency/processutils.py:473
2023-07-18 07:37:01.577 1067 DEBUG oslo_concurrency.processutils [-] Running cmd (subprocess): sudo useradd --uid 1001 --gid 1001 -M database execute /opt/guest-agent-venv/lib/python3.8/site-packages/oslo_concurrency/processutils.py:384
2023-07-18 07:37:01.927 1067 DEBUG oslo_concurrency.processutils [-] CMD "sudo useradd --uid 1001 --gid 1001 -M database" returned: 9 in 0.349s execute /opt/guest-agent-venv/lib/python3.8/site-packages/oslo_concurrency/processutils.py:422
2023-07-18 07:37:01.949 1067 DEBUG oslo_concurrency.processutils [-] 'sudo useradd --uid 1001 --gid 1001 -M database' failed. Not Retrying. execute /opt/guest-agent-venv/lib/python3.8/site-packages/oslo_concurrency/processutils.py:473
2023-07-18 07:37:01.967 1067 DEBUG oslo_concurrency.processutils [-] Running cmd (subprocess): grep '^/dev/vdb ' /etc/mtab execute /opt/guest-agent-venv/lib/python3.8/site-packages/oslo_concurrency/processutils.py:384
2023-07-18 07:37:02.097 1067 DEBUG oslo_concurrency.processutils [-] CMD "grep '^/dev/vdb ' /etc/mtab" returned: 1 in 0.130s execute /opt/guest-agent-venv/lib/python3.8/site-packages/oslo_concurrency/processutils.py:422
2023-07-18 07:37:02.102 1067 INFO trove.cmd.guest [-] Preparing the storage for /dev/vdb, mount path /var/lib/mysql
2023-07-18 07:37:02.105 1067 DEBUG trove.guestagent.volume [-] Checking if /dev/vdb exists. _check_device_exists /opt/guest-agent-venv/lib/python3.8/site-packages/trove/guestagent/volume.py:217
2023-07-18 07:37:02.108 1067 DEBUG oslo_concurrency.processutils [-] Running cmd (subprocess): sudo blockdev --getsize64 /dev/vdb execute /opt/guest-agent-venv/lib/python3.8/site-packages/oslo_concurrency/processutils.py:384
2023-07-18 07:37:02.392 1067 DEBUG oslo_concurrency.processutils [-] CMD "sudo blockdev --getsize64 /dev/vdb" returned: 0 in 0.285s execute /opt/guest-agent-venv/lib/python3.8/site-packages/oslo_concurrency/processutils.py:422
2023-07-18 07:37:02.397 1067 DEBUG trove.guestagent.volume [-] Checking whether '/dev/vdb' is formatted. _check_format /opt/guest-agent-venv/lib/python3.8/site-packages/trove/guestagent/volume.py:229
2023-07-18 07:37:02.400 1067 DEBUG oslo_concurrency.processutils [-] Running cmd (subprocess): sudo xfs_admin -l /dev/vdb execute /opt/guest-agent-venv/lib/python3.8/site-packages/oslo_concurrency/processutils.py:384
2023-07-18 07:37:02.747 1067 DEBUG oslo_concurrency.processutils [-] CMD "sudo xfs_admin -l /dev/vdb" returned: 1 in 0.347s execute /opt/guest-agent-venv/lib/python3.8/site-packages/oslo_concurrency/processutils.py:422
2023-07-18 07:37:02.752 1067 DEBUG oslo_concurrency.processutils [-] 'sudo xfs_admin -l /dev/vdb' failed. Not Retrying. execute /opt/guest-agent-venv/lib/python3.8/site-packages/oslo_concurrency/processutils.py:473
2023-07-18 07:37:02.755 1067 CRITICAL root [-] Unhandled error: oslo_concurrency.processutils.ProcessExecutionError: Unexpected error while running command.
Command: sudo xfs_admin -l /dev/vdb
Exit code: 1
Stdout: ''
Stderr: 'xfs_admin: /dev/vdb is not a valid XFS filesystem (unexpected SB magic number 0x00000000)\nUse -F to force a read attempt.\n'
2023-07-18 07:37:02.755 1067 ERROR root Traceback (most recent call last):
2023-07-18 07:37:02.755 1067 ERROR root File "/usr/local/bin/guest-agent", line 8, in <module>
2023-07-18 07:37:02.755 1067 ERROR root sys.exit(main())
2023-07-18 07:37:02.755 1067 ERROR root File "/opt/guest-agent-venv/lib/python3.8/site-packages/trove/cmd/guest.py", line 77, in main
2023-07-18 07:37:02.755 1067 ERROR root device.format()
2023-07-18 07:37:02.755 1067 ERROR root File "/opt/guest-agent-venv/lib/python3.8/site-packages/trove/guestagent/volume.py", line 242, in format
2023-07-18 07:37:02.755 1067 ERROR root self._check_format()
2023-07-18 07:37:02.755 1067 ERROR root File "/opt/guest-agent-venv/lib/python3.8/site-packages/trove/guestagent/volume.py", line 230, in _check_format
2023-07-18 07:37:02.755 1067 ERROR root self.volume_fs.check_format(self.device_path)
2023-07-18 07:37:02.755 1067 ERROR root File "/opt/guest-agent-venv/lib/python3.8/site-packages/trove/guestagent/volume.py", line 152, in check_format
2023-07-18 07:37:02.755 1067 ERROR root stdout, stderr = utils.execute(
2023-07-18 07:37:02.755 1067 ERROR root File "/opt/guest-agent-venv/lib/python3.8/site-packages/oslo_concurrency/processutils.py", line 438, in execute
2023-07-18 07:37:02.755 1067 ERROR root raise ProcessExecutionError(exit_code=_returncode,
2023-07-18 07:37:02.755 1067 ERROR root oslo_concurrency.processutils.ProcessExecutionError: Unexpected error while running command.
2023-07-18 07:37:02.755 1067 ERROR root Command: sudo xfs_admin -l /dev/vdb
2023-07-18 07:37:02.755 1067 ERROR root Exit code: 1
2023-07-18 07:37:02.755 1067 ERROR root Stdout: ''
2023-07-18 07:37:02.755 1067 ERROR root Stderr: 'xfs_admin: /dev/vdb is not a valid XFS filesystem (unexpected SB magic number 0x00000000)\nUse -F to force a read attempt.\n'
2023-07-18 07:37:02.755 1067 ERROR root
2023-07-18 07:37:12.848 1089 INFO trove.cmd.guest [-] Creating user and group for database service
2023-07-18 07:37:12.854 1089 DEBUG oslo_concurrency.processutils [-] Running cmd (subprocess): sudo groupadd --gid 1001 database execute /opt/guest-agent-venv/lib/python3.8/site-packages/oslo_concurrency/processutils.py:384
2023-07-18 07:37:13.176 1089 DEBUG oslo_concurrency.processutils [-] CMD "sudo groupadd --gid 1001 database" returned: 9 in 0.322s execute /opt/guest-agent-venv/lib/python3.8/site-packages/oslo_concurrency/processutils.py:422
2023-07-18 07:37:13.182 1089 DEBUG oslo_concurrency.processutils [-] 'sudo groupadd --gid 1001 database' failed. Not Retrying. execute /opt/guest-agent-venv/lib/python3.8/site-packages/oslo_concurrency/processutils.py:473
2023-07-18 07:37:13.186 1089 DEBUG oslo_concurrency.processutils [-] Running cmd (subprocess): sudo useradd --uid 1001 --gid 1001 -M database execute /opt/guest-agent-venv/lib/python3.8/site-packages/oslo_concurrency/processutils.py:384
2023-07-18 07:37:13.508 1089 DEBUG oslo_concurrency.processutils [-] CMD "sudo useradd --uid 1001 --gid 1001 -M database" returned: 9 in 0.321s execute /opt/guest-agent-venv/lib/python3.8/site-packages/oslo_concurrency/processutils.py:422
2023-07-18 07:37:13.512 1089 DEBUG oslo_concurrency.processutils [-] 'sudo useradd --uid 1001 --gid 1001 -M database' failed. Not Retrying. execute /opt/guest-agent-venv/lib/python3.8/site-packages/oslo_concurrency/processutils.py:473
2023-07-18 07:37:13.519 1089 DEBUG oslo_concurrency.processutils [-] Running cmd (subprocess): grep '^/dev/vdb ' /etc/mtab execute /opt/guest-agent-venv/lib/python3.8/site-packages/oslo_concurrency/processutils.py:384
2023-07-18 07:37:13.652 1089 DEBUG oslo_concurrency.processutils [-] CMD "grep '^/dev/vdb ' /etc/mtab" returned: 1 in 0.133s execute /opt/guest-agent-venv/lib/python3.8/site-packages/oslo_concurrency/processutils.py:422
2023-07-18 07:37:13.656 1089 INFO trove.cmd.guest [-] Preparing the storage for /dev/vdb, mount path /var/lib/mysql
2023-07-18 07:37:13.659 1089 DEBUG trove.guestagent.volume [-] Checking if /dev/vdb exists. _check_device_exists /opt/guest-agent-venv/lib/python3.8/site-packages/trove/guestagent/volume.py:217
2023-07-18 07:37:13.662 1089 DEBUG oslo_concurrency.processutils [-] Running cmd (subprocess): sudo blockdev --getsize64 /dev/vdb execute /opt/guest-agent-venv/lib/python3.8/site-packages/oslo_concurrency/processutils.py:384
2023-07-18 07:37:13.972 1089 DEBUG oslo_concurrency.processutils [-] CMD "sudo blockdev --getsize64 /dev/vdb" returned: 0 in 0.310s execute /opt/guest-agent-venv/lib/python3.8/site-packages/oslo_concurrency/processutils.py:422
2023-07-18 07:37:13.977 1089 DEBUG trove.guestagent.volume [-] Checking whether '/dev/vdb' is formatted. _check_format /opt/guest-agent-venv/lib/python3.8/site-packages/trove/guestagent/volume.py:229
2023-07-18 07:37:13.980 1089 DEBUG oslo_concurrency.processutils [-] Running cmd (subprocess): sudo xfs_admin -l /dev/vdb execute /opt/guest-agent-venv/lib/python3.8/site-packages/oslo_concurrency/processutils.py:384
2023-07-18 07:37:14.341 1089 DEBUG oslo_concurrency.processutils [-] CMD "sudo xfs_admin -l /dev/vdb" returned: 1 in 0.360s execute /opt/guest-agent-venv/lib/python3.8/site-packages/oslo_concurrency/processutils.py:422
2023-07-18 07:37:14.345 1089 DEBUG oslo_concurrency.processutils [-] 'sudo xfs_admin -l /dev/vdb' failed. Not Retrying. execute /opt/guest-agent-venv/lib/python3.8/site-packages/oslo_concurrency/processutils.py:473
2023-07-18 07:37:14.348 1089 CRITICAL root [-] Unhandled error: oslo_concurrency.processutils.ProcessExecutionError: Unexpected error while running command.
Command: sudo xfs_admin -l /dev/vdb
Exit code: 1
Stdout: ''
Stderr: 'xfs_admin: /dev/vdb is not a valid XFS filesystem (unexpected SB magic number 0x00000000)\nUse -F to force a read attempt.\n'
2023-07-18 07:37:14.348 1089 ERROR root Traceback (most recent call last):
2023-07-18 07:37:14.348 1089 ERROR root File "/usr/local/bin/guest-agent", line 8, in <module>
2023-07-18 07:37:14.348 1089 ERROR root sys.exit(main())
2023-07-18 07:37:14.348 1089 ERROR root File "/opt/guest-agent-venv/lib/python3.8/site-packages/trove/cmd/guest.py", line 77, in main
2023-07-18 07:37:14.348 1089 ERROR root device.format()
2023-07-18 07:37:14.348 1089 ERROR root File "/opt/guest-agent-venv/lib/python3.8/site-packages/trove/guestagent/volume.py", line 242, in format
2023-07-18 07:37:14.348 1089 ERROR root self._check_format()
2023-07-18 07:37:14.348 1089 ERROR root File "/opt/guest-agent-venv/lib/python3.8/site-packages/trove/guestagent/volume.py", line 230, in _check_format
2023-07-18 07:37:14.348 1089 ERROR root self.volume_fs.check_format(self.device_path)
2023-07-18 07:37:14.348 1089 ERROR root File "/opt/guest-agent-venv/lib/python3.8/site-packages/trove/guestagent/volume.py", line 152, in check_format
2023-07-18 07:37:14.348 1089 ERROR root stdout, stderr = utils.execute(
2023-07-18 07:37:14.348 1089 ERROR root File "/opt/guest-agent-venv/lib/python3.8/site-packages/oslo_concurrency/processutils.py", line 438, in execute
2023-07-18 07:37:14.348 1089 ERROR root raise ProcessExecutionError(exit_code=_returncode,
2023-07-18 07:37:14.348 1089 ERROR root oslo_concurrency.processutils.ProcessExecutionError: Unexpected error while running command.
2023-07-18 07:37:14.348 1089 ERROR root Command: sudo xfs_admin -l /dev/vdb
2023-07-18 07:37:14.348 1089 ERROR root Exit code: 1
2023-07-18 07:37:14.348 1089 ERROR root Stdout: ''
2023-07-18 07:37:14.348 1089 ERROR root Stderr: 'xfs_admin: /dev/vdb is not a valid XFS filesystem (unexpected SB magic number 0x00000000)\nUse -F to force a read attempt.\n'
2023-07-18 07:37:14.348 1089 ERROR root

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.