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

AGENT-1113: enhance the unconfigured-ignition command to support the interactive workflow #9529

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

andfasano
Copy link
Contributor

@andfasano andfasano commented Mar 3, 2025

This patch adds a new flag --interactive to the unconfigured-ignition command to support the interactive disconnected workflow.
It is possible to specify the rendezvous IP via the agent-config.yaml file.
The interactive workflow spins up the assisted-ui after the assisted-service (and it's mutually exclusive with the automatic workflow services).

Required by:

Related to:

@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Mar 3, 2025

@andfasano: This pull request references AGENT-1113 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.19.0" version, but no target version was set.

In response to this:

This patch adds a new flag --interactive to the unconfigured-ignition command to support the interactive disconnected workflow.

Required by:

Related to:

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Mar 3, 2025
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 3, 2025
@openshift-ci openshift-ci bot requested review from pawanpinjarkar and rna-afk March 3, 2025 08:36
@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Mar 3, 2025

@andfasano: This pull request references AGENT-1113 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.19.0" version, but no target version was set.

In response to this:

/draft

This patch adds a new flag --interactive to the unconfigured-ignition command to support the interactive disconnected workflow.

Required by:

Related to:

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

Copy link
Contributor

openshift-ci bot commented Mar 3, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from andfasano. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Mar 3, 2025

@andfasano: This pull request references AGENT-1113 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.19.0" version, but no target version was set.

In response to this:

/draft

This patch adds a new flag --interactive to the unconfigured-ignition command to support the interactive disconnected workflow.
It is possible to specify the rendezvous IP via the agent-config.yaml file.
The workflow registers a basically empty cluster into assisted-service and then spin up the assisted-ui connected to it.

Required by:

Related to:

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@andfasano andfasano force-pushed the abi-unconfigured-interactive-ignition branch from a2405d8 to 139346c Compare March 4, 2025 09:25
// required by the agent-start-ui.service.
rendezvousHostContent := fmt.Sprintf("%s\nAIUI_APP_API_URL=%s", getRendezvousHostEnv("http", rendezvousIP, "", "", agentWorkflow.Workflow), rendezvousIP)
rendezvousHostFile := ignition.FileFromString(rendezvousHostEnvPath, "root", 0644, rendezvousHostContent)
config.Storage.Files = append(config.Storage.Files, rendezvousHostFile)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't needed for MVP, but there'd be no harm in doing it unconditionally since the appliance doesn't pass an agentConfig.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, it will pass it when the appliance liveiso command will support it (cc @danielerez )

danielerez added a commit to danielerez/appliance that referenced this pull request Mar 4, 2025
Support the '--interactive' flag when invoking
the 'unconfigured-igintiion' API.
The flow is enabled using the 'enableInteractiveFlow'
property in appliance-config.yaml

For more details see: openshift/installer#9529
danielerez added a commit to danielerez/appliance that referenced this pull request Mar 4, 2025
Support the '--interactive' flag when invoking
the 'unconfigured-igintiion' API.
The flow is enabled using the 'enableInteractiveFlow'
property in appliance-config.yaml

For more details see: openshift/installer#9529
openshift-merge-bot bot pushed a commit to openshift/appliance that referenced this pull request Mar 5, 2025
Support the '--interactive' flag when invoking
the 'unconfigured-igintiion' API.
The flow is enabled using the 'enableInteractiveFlow'
property in appliance-config.yaml

For more details see: openshift/installer#9529
Required to allow the UnconfiguredIgnition asset to have also AgentConfig as a dependency - to retrieve the rendezvous ip.
Since InfraEnv was also dependent on AgentConfig, the presence of both files caused the asset fetcher to discard the InfraEnv content from the disk, forcing an unwanted asset re-generation.
Also the rendezvous host file is now a template when the rendezvous IP is not defined (to be used by the agent TUI).
The assisted UI will take care of creating the cluster/infraenv
@andfasano andfasano force-pushed the abi-unconfigured-interactive-ignition branch 2 times, most recently from ea12072 to 4c96e3b Compare March 6, 2025 10:09
@andfasano andfasano force-pushed the abi-unconfigured-interactive-ignition branch from 4c96e3b to 3f73cda Compare March 6, 2025 10:10
@andfasano andfasano changed the title [WIP] AGENT-1113: enhance the unconfigured-ignition command to support the interactive workflow AGENT-1113: enhance the unconfigured-ignition command to support the interactive workflow Mar 7, 2025
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 7, 2025
@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Mar 7, 2025

@andfasano: This pull request references AGENT-1113 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.19.0" version, but no target version was set.

In response to this:

This patch adds a new flag --interactive to the unconfigured-ignition command to support the interactive disconnected workflow.
It is possible to specify the rendezvous IP via the agent-config.yaml file.
The interactive workflow spins up the assisted-ui after the assisted-service (and it's mutually exclusive with the automatic workflow services).

Required by:

Related to:

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Mar 7, 2025

@andfasano: This pull request references AGENT-1113 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.19.0" version, but no target version was set.

In response to this:

This patch adds a new flag --interactive to the unconfigured-ignition command to support the interactive disconnected workflow.
It is possible to specify the rendezvous IP via the agent-config.yaml file.
The interactive workflow spins up the assisted-ui after the assisted-service (and it's mutually exclusive with the automatic workflow services).

Required by:

Related to:

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@andfasano
Copy link
Contributor Author

/retest

Copy link
Contributor

openshift-ci bot commented Mar 7, 2025

@andfasano: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/artifacts-images ce373e2 link true /test artifacts-images
ci/prow/okd-scos-e2e-aws-ovn ce373e2 link false /test okd-scos-e2e-aws-ovn
ci/prow/e2e-azure-ovn-resourcegroup ce373e2 link false /test e2e-azure-ovn-resourcegroup
ci/prow/e2e-agent-compact-ipv4-appliance-diskimage ce373e2 link false /test e2e-agent-compact-ipv4-appliance-diskimage

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
jira/valid-reference Indicates that this PR references a valid Jira ticket of any type.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants