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

Agama fails to load a profile that has a network section #1701

Closed
serock opened this issue Oct 26, 2024 · 1 comment
Closed

Agama fails to load a profile that has a network section #1701

serock opened this issue Oct 26, 2024 · 1 comment

Comments

@serock
Copy link

serock commented Oct 26, 2024

I'm running Agama inside of Virtualbox 7.0.18 on openSUSE Leap 15.6. I tried using the Agama CLI from the latest Live ISO (agama-installer.x86_64-10.0.0-openSUSE-Build25.145.iso) to load a profile. If the profile has a network section, the profile fails to load:

agama:~ # agama profile validate n.json
The profile is valid
agama:~ # agama config load < n.json
Anyhow(Backend call failed with status 405 and text '')

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

{
  "user": {
    "fullName": "Jane Doe",
    "userName": "jane.doe",
    "password": "123456"
  },
  "product": {
    "id": "Tumbleweed"
  },
  "localization": {
    "language": "en_US.UTF-8",
    "keyboard": "us",
    "timezone": "America/New_York"
  },
  "network": {
    "connections": [
      {
        "id": "Wired connection 1"
      }
    ]
  }
}

If I remove the network section, Agama loads the profile.

imobachgs added a commit that referenced this issue Oct 28, 2024
## Problem

See #1701. The CLI uses a PUT instead of a POST when applying the
network configuration.

## Solution

Use the correct HTTP verb when applying the network configuration.

## Testing

- Tested manually
@imobachgs
Copy link
Contributor

Thanks for your report. #1702 should fix this issue. It should be available today in the openSUSE image.

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

2 participants