Ask Your Question
1

Network configuration help needed

asked 2016-04-17 15:01:00 -0500

Saurabh Sonar gravatar image

updated 2016-04-18 11:48:40 -0500

rbowen gravatar image

Hi there!

I am new to the cloud stuff and interested to learn about it. I am trying to install openstack on dedicated node remotely. Installtion completes successfully but the issue is the Access IP for it uses the localhost IP.

 **** Installation completed successfully ******

Additional information:
 * A new answerfile was created in: /root/packstack-answers-20160417-185555.txt
 * Time synchronization installation was skipped. Please note that unsynchronize                                                                             d time on server instances might be problem for some OpenStack components.
 * Warning: NetworkManager is active on 127.0.0.1. OpenStack networking currentl                                                                             y does not work on systems that have the Network Manager service enabled.
 * File /root/keystonerc_admin has been created on OpenStack client host 127.0.0                                                                             .1. To use the command line tools you need to source the file.
 * To access the OpenStack Dashboard browse to http://127.0.0.1/dashboard .
Please, find your login credentials stored in the keystonerc_admin in your home                                                                              directory.
 * To use Nagios, browse to http://127.0.0.1/nagios username: nagiosadmin, passw                                                                             ord: 160958beceae4754
 * Because of the kernel update the host 127.0.0.1 requires reboot.
 * The installation log file is available at: /var/tmp/packstack/20160417-185554                                                                             -3qmQJW/openstack-setup.log
 * The generated manifests are available at: /var/tmp/packstack/20160417-185554-                                                                             3qmQJW/manifests

How can I change that localhost IP to some public dedicated IP of the server? So, I can access the dashboard and other stuff?

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
0

answered 2016-04-18 14:37:27 -0500

dsneddon gravatar image

There is a workaround for this which I use often when doing testing with Packstack, although it's not a permanent solution:

ssh -L localhost:8080:localhost:8080 user@remote.host

Where remote.host is the address of the dedicated node where you have Horizon running. Once you have established this SSH connection, you can then connect to http://localhost:8080 and you should be able to bring up Horizon (assuming that Horizon is running on 127.0.0.1:8080).

I'm researching a permanent fix, and will update if I find a good solution.

edit flag offensive delete link more
0

answered 2016-04-18 15:49:07 -0500

lhinds gravatar image

For the dashboard, you typically change

 /etc/httpd/conf.d/15-horizon_vhost.conf

I have mine listening / serving on 192.168.0.11

<VirtualHost *:80>
  ServerName stack

  ## Vhost docroot
  DocumentRoot "/var/www/"
  ## Alias declarations for resources outside the DocumentRoot
  Alias /dashboard/static "/usr/share/openstack-dashboard/static"

  ## Directories, there should at least be a declaration for /var/www/

  <Directory "/var/www/">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Require all granted
  </Directory>

  ## Logging
  ErrorLog "/var/log/httpd/horizon_error.log"
  ServerSignature Off
  CustomLog "/var/log/httpd/horizon_access.log" combined

  ## RedirectMatch rules
  RedirectMatch permanent  ^/$ /dashboard

  # Server aliases
  ServerAlias 192.168.0.11
  ServerAlias stack
  ServerAlias localhost
  WSGIDaemonProcess dashboard group=apache processes=3 threads=10 user=apache
  WSGIProcessGroup dashboard
  WSGIScriptAlias /dashboard "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi"
</VirtualHost>
edit flag offensive delete link more
0

answered 2016-04-19 04:15:36 -0500

Saurabh Sonar gravatar image

Hello,

I was able to solve that through the answer file during installation. And it works fine for now. But the only issues I face now is none of the instances are able to connect external network, even unable to ping any other outside IPs.

If anyone can help me with it, that will be great.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-04-17 15:01:00 -0500

Seen: 184 times

Last updated: Apr 19 '16