summary refs log tree commit diff stats
path: root/gitlab/issues/target_missing/host_missing/accel_missing/483.toml
blob: fc84fda8649e54116d65696a176bf7aa26998f78 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
id = 483
title = "qemu doesn't process -object secret when read from a config file"
state = "closed"
created_at = "2021-07-15T00:59:40.362Z"
closed_at = "2021-11-04T14:01:34.894Z"
labels = ["CLI", "Stable::to backport"]
url = "https://gitlab.com/qemu-project/qemu/-/issues/483"
host-os = "n/a"
host-arch = "n/a"
qemu-version = "n/a"
guest-os = "n/a"
guest-arch = "n/a"
description = """Qemu doesn't process -object secret lines when read from a config file.  This results in the new spice password-secret option failing with error: No secret with id '\\<theid\\>'"""
reproduce = """1. Create a password file
```
printf "password" > passfile.pw
```
2. Start qemu with command line options and also write to a config file
```
qemu-system-x86_64 \\
  -object secret,id=spicepwd,format=raw,file=passfile.pw \\
  -spice port=5901,password-secret=spicepwd \\
  -writeconfig qemu.cfg
```
3. Optional: Connect using spice client and password: "password"
4. Exit qemu and cat qemu.cfg and verify it looks okay with equivalent options to what was specified on the command line
5. Now attempt to start qemu and read the options using the config file
```
qemu-system-x86_64 -readconfig qemu.cfg
```
6. This fails with an error:
```
qemu-system-x86_64: No secret with id 'spicepwd'
```"""
additional = "n/a"