It seems theoretically possible for me to ssh to my instance in OpenStack through credentials and instance id/network IP(Not floating IP) etc. Is it possible, am I missing something? Is it simply a feature not yet supported?
Vishwa Mithra Tatta's questions
I have an openstack deployment using kolla ansible. I am unable to configure neutron for floating IPs, Where do I start? I have a router which forwards say, 40 different public IPs onto a single high speed port using openflow. This is connected to my openstack controller, which houses neutron too.
Where do I go from here? How do I make the IPs availvable to openstack so it can forward the packets to required instances in Nova?
I took a snapshot from one instance in an openstack and put the snapshot as image in another openstack deployment, then tried to run it on a flavor that has greater hardware than required. Everything seems to go smooth but I'm unable to login into the new instance. Any suggestions? where are the credentials stored in a snapshot?
- -> I have two Openstack deployments, say op1 and op2.
- -> I have an ubuntu 18.04 LTS instance snapshot in op1.
- -> I downloaded the snapshot from op1.
- -> I created an image of the snapshot in op2.
- ->In op2 I made a flavor to accommodate the instance.
- -> I booted it with the default network and security group.
- -> Everything seemed to go fine.
- -> Then the login screen appeared in the vnc console of the instance.
- -> I entered the snapshot username and password.
- -> It shows invalid/wrong username or password.
-
Now, I don't know where the credentials got lost. In my experience it should be stored inside the snapshot itself. Here is the guide I followed enter link description here
I have been trying to make a simple connection to Openstack cloud using python-openstack sdk. With no success. Can someone tell me where I am going wrong? I can see that the header is sending something else entirely instead of the token of authentication, but I don't know how to change that. Here is the code:
import openstack
import sys
conn=connection.Connection(
auth_url='https://fra1.citycloud.com:5000',
project_name="Default Project 39140",
username="vishwa",
password="********",
user_domain_id="99c442651eb84358a515c42e4e6b3acb",
project_domain_id="221c17841e5640f5953c22c28c3872e6")
for servers in conn.compute.servers():
print(server.name)
and here is the response:
REQ: curl -g -i -X GET https://fra1.citycloud.com:5000 -H "Accept: application/json" -H "**User-Agent: openstacksdk/0.53.0 keystoneauth1/4.3.0 python-requests/2.25.1 CPython/3.7.0**"
RESP: [300] Connection: close Content-Length: 274 Content-Type: application/json Date: Sun, 28 Feb 2021 03:22:48 GMT Location: https://fra1.citycloud.com:5000/v3/ Server: nginx/1.14.0 (Ubuntu) Vary: X-Auth-Token x-openstack-request-id: req-cf7cfc97-92af-4f26-9afc-e65b72d26f26
RESP BODY: {"versions": {"values": [{"id": "v3.13", "status": "stable", "updated": "2019-07-19T00:00:00Z", "links": [{"rel": "self", "href": "https://fra1.citycloud.com:5000/v3/"}], "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}]}]}}
GET call to https://fra1.citycloud.com:5000/ used request id req-cf7cfc97-92af-4f26-9afc-e65b72d26f26
Making authentication request to https://fra1.citycloud.com:5000/v3/auth/tokens
Request returned failure status: 401
If you look at that. you can see that the "header" is sending 'agent-..' instead of credentials: {username:...,pass:} Some more details: The city cloud has its own api, I know it uses tokens to authenticate-version 3. I had been able to do it with their API, but am struggling with using openstack api. Thanks
I'm a noob learning openstack. And The resources are all over the place tbh. I came across this image and would like to know one thing, So, Suppose I have 100TB of storage and 10 server grade processors, and ram of 1TB, do all these resources make up of only one base OS- RED hat enterprise Linux? So, they sell resources to connect all the equipment and connect to install one single OS which can comprehend them all? And Upon this, we throw an Openstack architecture so clients can use them as needed? Do we need as many NICs or the NICs virtual?
on the NICs, I mean- by definition(at consumer scale-like one laptop) we need a network interface card for one IP. And to act as an interface. So, in the case of cloud, are the IP addresses all mapped to real physical NICs or Openstack uses one big special NIC which has one public IP and all IPs hop through it?
Also here is the original question please read the comments, I couldn't actually migrate due to my experience points. https://stackoverflow.com/questions/65862267/do-all-servers-have-one-base-os-like-in-red-hat-openstack-architecture