Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uninitialized constant error when loading storage profile #1706

Closed
serock opened this issue Oct 28, 2024 · 2 comments
Closed

Uninitialized constant error when loading storage profile #1706

serock opened this issue Oct 28, 2024 · 2 comments

Comments

@serock
Copy link

serock commented Oct 28, 2024

I'm using the agama-installer.x86_64-10.0.0-openSUSE-Build25.151.iso in VirtualBox 7.0.18 on openSUSE Leap 15.6. When I attempt to load a profile that has a storage section that uses a search, I get a failure:

agama:~ # agama config load < gpt.json
Anyhow(Backend call failed with status 400 and text '{"error":"Agama service error: D-Bus service error: org.freedesktop.DBus.Error.Failed: uninitialized constant Agama::Storage::ConfigConversions::FromJSONConversions::Search::SEARCH_ANYTHING_STRING; caused by 1 sender=:1.1 -> dest=org.opensuse.Agama.Storage1 serial=90 reply_serial= path=/org/opensuse/Agama/Storage1; interface=org.opensuse.Agama.Storage1; member=SetConfig error_name="}')

The gpt.json profile that I'm trying to load is:

{
  "storage": {
    "drives": [
      {
        "search": "/dev/sda",
        "ptableType": "gpt"
      }
    ]
  }
}
@ancorgs
Copy link
Contributor

ancorgs commented Oct 30, 2024

A fix is being worked on.

joseivanlopez added a commit to joseivanlopez/agama that referenced this issue Oct 30, 2024
joseivanlopez added a commit to joseivanlopez/agama that referenced this issue Oct 30, 2024
joseivanlopez added a commit that referenced this issue Oct 30, 2024
Improvements in JSON conversions for storage config:

* Do not fail when setting config
#1706.
* Do not generate search wildcard. The *search* JSON is always generated
in its expanded form.
@joseivanlopez
Copy link
Contributor

Fixed by #1713.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants