Skip to content

PE console fails to run task from environment starting with a digit or contain an uppercase letter #58

@bastelfreak

Description

@bastelfreak

Describe the Bug

Hi, I've two environments deployed, 1_0_0 and peadm. After going to #/orchestration/tasks/create => selecting the environment and then the task, I get an error:

2024-09-26_20-41
2024-09-26_20-50

This is reproducible for all tasks in this environment. It works if I select the peadm environment. I don't know if this is actually related to the environment starting with a digit, but it's reproducible. It's fine to run the task via the CLI:

root@pe ~ # puppet task --environment 1_0_0 run service action=status name=pe-puppetserver --nodes $(hostname -f)
Starting job ...
Note: The task will run only on permitted nodes.
New job ID: 2
Nodes: 1

Started on pe ...
Finished on node pe
  status : running
  enabled : true

Job completed. 1/1 nodes succeeded.
Duration: 1 sec
root@pe ~ #

It's only a problem in the PE console.

Expected Behavior

Environments starting with a digit should be supported by the PE console.

Steps to Reproduce

  • Install PE 2021.7.9 or 2023.8.0
  • deploy environment starting with a digit
  • try to run a task via the PE console

Environment

  • PE 2021.7.9 / 2023.8.0
  • EL8

Additional Context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions