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

remoteconsoles.Create itemNotFound #2846

Open
liukelin opened this issue Dec 7, 2023 · 1 comment
Open

remoteconsoles.Create itemNotFound #2846

liukelin opened this issue Dec 7, 2023 · 1 comment

Comments

@liukelin
Copy link

liukelin commented Dec 7, 2023

Before starting a PR, please read our contributor tutorial.


	authOpts := gophercloud.AuthOptions{
		IdentityEndpoint: cluster.ClusterConfig.IdentityEndpoint,
		Username:         cluster.ClusterConfig.Username, 
		Password:         cluster.ClusterConfig.Password,
		DomainName:       cluster.ClusterConfig.DomainName, // DomainName
		TenantName:       namespace,                    
	}
	c, err := openstack.AuthenticatedClient(authOpts)
	if err != nil {
		logger.Error(context.TODO(), err.Error())
		return
	}

	cs, err := openstack.NewComputeV2(c, gophercloud.EndpointOpts{
		Type:   "compute",
		Region: "RegionOne",
	})
	if err != nil {
		logger.Error(ctx, err.Error())
		return
	}
	opts := remoteconsoles.CreateOpts{
		Protocol: remoteconsoles.ConsoleProtocolVNC,
		Type:     remoteconsoles.ConsoleTypeNoVNC,
	}
	s, err = remoteconsoles.Create(client, obj.InstanceId, opts).Extract()

Resource not found: [POST http://xxxxx:8774/v2.1/servers/80f1a167-e0ed-4fdd-8d06-984e29dea8af/remote-consoles], error message: {\"itemNotFound\": {\"code\": 404, \"message\": \"The resource could not be found.\"}}

Copy link

github-actions bot commented Dec 7, 2023

Thank you for reporting your first issue! Be sure that we will be looking at it, but keep in mind
this sometimes takes a while.
Please let the maintainers know if your issue has not got enough attention after a few days.
If any doubt, please consult our issue tutorial.

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

1 participant