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

[Fleet]Start Fleet Server Command under Add Agent is not getting formatted correctly in PowerShell #104273

Closed
ghost opened this issue Jul 5, 2021 · 5 comments
Assignees
Labels
bug Fixes for quality problems that affect the customer experience impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. Team:Fleet Team label for Observability Data Collection Fleet team

Comments

@ghost
Copy link

ghost commented Jul 5, 2021

Describe the bug
Start Fleet Server Command under Add Agent is not getting formatted correctly in PowerShell.

Build Details:

version: 7.14.0-BC1
Commit:071a74e02f82b79a4a10026b5c9e02d593112fd4
Build:42292

Browser Details:
N/A

Browser Details
All

Preconditions
1.Kibana users should be logged in.

Steps to Reproduce
1.Go to Integrations.
2.Search for System integration.
3.Click on add Agent .
4.Fill in all required details.
5.Observed that fleet server command copied from kibana is not formated and could not run in PS.

.\elastic-agent.exe install  -f \
 --fleet-server-es=https://be416f94b3c94529a80af38190153823.europe-west1.gcp.cloud.es.io:443 \
 --fleet-server-service-token=AAEAAWVsYXN0aWMvZmxlZXQtc2VydmVyL3Rva2VuLTE2MjU0NjQ0ODc3MTY6VTdBUjZHLXVSc2llZUJnanQwUklNUQ \
  --fleet-server-policy=policy-elastic-agent-on-cloud

Actual Result
Start Fleet Server Command under Add Agent is not getting formatted correctly in PowerShell.

Expected Result
Copied Fleet Server Command could not run in PS

Whats Working

  • N/A

Whats Not Working

  • N/A

Screen-Shoot

image
image

logs

  • N/A
@ghost ghost added bug Fixes for quality problems that affect the customer experience Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. labels Jul 5, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-solution (Team: SecuritySolution)

@ghost ghost added impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. Team:Fleet Team label for Observability Data Collection Fleet team labels Jul 5, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

@manishgupta-qasource
Copy link

manishgupta-qasource commented Jul 5, 2021

Reviewed & Assigned to @jen-huang

CC @EricDavisX

@dikshachauhan-qasource
Copy link

Hi @jen-huang

We have observed that Add agent issue having on-prem instruction to set fleet server up is displayed on staging, Production and cloud-qa environments as first raised under #103550 (comment).

FYI
Observations on Prod/staging env:

  • No default Fleet-server agent is installed under 'elastic agent cloud policy'.
  • 'Edit deployment' message is displayed on Fleet agents tab and under 'Enroll in Fleet' fly out.
    image
  • On navigating to Add agent flyout under integrations tab, we are able access instructions to create a self-managed fleet-server.
  • However, instructions shown up here are related set up fleet server on self managed environment.
  • Further, on scrolling down, we observed above reported issue having in-correct commands format for installing fleet-server agents. [Point 5 is observed on all the deployments: Cloud-qa, staging and production].

Observations on Cloud-qa env:

Please let us know in case on any queries.

Thanks
QAS

@nchaulet
Copy link
Member

nchaulet commented Jul 5, 2021

Looks like the new line character we use on unix \ is not supported in powershell looks like it should be done with a backtick.

@nchaulet nchaulet assigned nchaulet and unassigned jen-huang Jul 5, 2021
@nchaulet nchaulet removed the Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. label Jul 5, 2021
@nchaulet nchaulet changed the title [Security Solution]Start Fleet Server Command under Add Agent is not getting formatted correctly in PowerShell [Fleet]Start Fleet Server Command under Add Agent is not getting formatted correctly in PowerShell Jul 5, 2021
@nchaulet nchaulet closed this as completed Jul 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. Team:Fleet Team label for Observability Data Collection Fleet team
Projects
None yet
Development

No branches or pull requests

5 participants