Questions & Answers

The PNDA console is still inaccessible. Not sure whether the PNDA is fully installed, HEAT display is successful.

0 votes
asked Apr 24, 2017 by yihli (310 points)
Has spent almost one month on PNDA's installation,your help is greatly appreciated.

Not worked,i have ssh to EDGE_NODE and use curl IP_OF_YOUR_EDGE_NODE_INTERNAL_IP,but not worked.

  root@cation-cdh-edge:/var/lib# curl http://127.0.0.1
  curl: (7) Failed to connect to 127.0.0.1 port 80: Connection refused
  root@cation-cdh-edge:/var/lib# curl http://192.168.10.17
  curl: (7) Failed to connect to 192.168.10.17 port 80: Connection refused

I aslo try to add a FLOATING_IP for EDGE_NODE then access the http://FLOATING_IP, no content too.

HEAT shows installed successfully,but i find some errors on the saltmaster Node.

addtional questions,

 1)I use PICO installation,should i change to standard?

 2)I find now all nodes created in the openstack only have ec2-user, don't have cloud-user ,have checked on /etc/passwd

 3)What's the framework for PNDA console, apache? nodejs?

Errors as below:

root@cation-saltmaster:/var/lib/heat-config/heat-config-script# more  salt-highstate-2017-04-21-08:18:23.log
......
cation-cdh-mgr1:
  ......
  Name: grafana-server_pkg - Function: pkg.installed - Result: Changed
----------
          ID: grafana-server_start
    Function: service.running
        Name: grafana-server
      Result: False
     Comment: Service grafana-server has been enabled, and is dead
     Started: 10:16:52.262217
    Duration: 30317.26 ms
     Changes:   
              ----------
              grafana-server:
                  True

Summary for cation-cdh-mgr1
-------------
Succeeded: 41 (changed=35)
Failed:     1
-------------
Total states run:     42
cation-kafka-0:
    Minion did not return. [No response]
cation-cdh-dn-0:
    Minion did not return. [No response]
cation-cdh-edge:
    Minion did not return. [No response]

root@cation-saltmaster:/var/lib/heat-config/heat-config-script# more salt-orchestrate-2017-04-21-10:21:41.log
cation-saltmaster_master:
----------
          ID: cdh-run_cloudera_user
    Function: salt.state
      Result: False
     Comment: Run failed on minions: cation-cdh-edge, cation-cdh-dn-0, cation-cdh-mgr1
              Failures:
                  cation-cdh-edge:
                  ----------
                            ID: cdh-create_cloudera_user
                      Function: user.present
                          Name: cloudera
                        Result: True
                       Comment: New user cloudera created
                       Started: 08:46:24.579392
                        ......
                  ----------
                            ID: cdh-get-cloudera-public-key
                      Function: module.run
                          Name: cp.get_file
                        Result: True
                       Comment: Module function cp.get_file executed
                            ......
                            ID: cdh-add_authorized_key
                      Function: ssh_auth.present
                        Result: False
                       Comment: An exception occurred in this state: Traceback (most recent call last):
                                 ......
                                    with salt.utils.fopen(fn_, 'r') as fp_:
                                  File "/usr/lib/python2.7/dist-packages/salt/utils/__init__.py", line 1215, in fopen
                                    fhandle = open(*args, **kwargs)
                                IOError: [Errno 2] No such file or directory: '/tmp/cloudera.pem.pub'
                       Started: 08:46:26.223835
                      Duration: 44.102 ms
                       Changes:   
                  
                  Summary for cation-cdh-edge
                  ------------
                  Succeeded: 2 (changed=2)
                  Failed:    1
                  ------------
                  Total states run:     3
                  cation-cdh-dn-0:
                  ----------
                            ID: cdh-create_cloudera_user
                      Function: user.present
                          Name: cloudera
                        Result: True
                       Comment: New user cloudera created
                       Started: 08:46:29.881845
                      Duration: 889.345 ms
                        ......
                  ----------
                            ID: cdh-get-cloudera-public-key
                      Function: module.run
                          Name: cp.get_file
                        Result: True
                       Comment: Module function cp.get_file executed
                       Started: 08:46:30.820416
                      Duration: 299.64 ms
                       Changes:   
                                ----------
                                ret:
                  ----------
                            ID: cdh-add_authorized_key
                      Function: ssh_auth.present
                        Result: False
                       Comment: An exception occurred in this state: Traceback (most recent call last):

                                    with salt.utils.fopen(fn_, 'r') as fp_:
                                  File "/usr/lib/python2.7/dist-packages/salt/utils/__init__.py", line 1215, in fopen
                                    fhandle = open(*args, **kwargs)
                                IOError: [Errno 2] No such file or directory: '/tmp/cloudera.pem.pub'
                       Started: 08:46:31.150238
                      Duration: 41.255 ms
                       Changes:   
                  
                  Summary for cation-cdh-dn-0
                  ------------
                  Succeeded: 2 (changed=2)
                  Failed:    1
                  ------------
                  Total states run:     3
                  cation-cdh-mgr1:
                  ----------
                            ID: cdh-create_cloudera_user
                      Function: user.present
                          Name: cloudera
                        Result: True
                       Comment: New user cloudera created
                       Started: 10:23:38.482593
                      Duration: 2772.827 ms
                     ......
                  ----------
                            ID: cdh-get-cloudera-public-key
                      Function: module.run
                          Name: cp.get_file
                        Result: True
                       Comment: Module function cp.get_file executed
                       Started: 10:23:41.268895
                      Duration: 497.261 ms
                  ----------
                            ID: cdh-add_authorized_key
                      Function: ssh_auth.present
                        Result: False
                       Comment: An exception occurred in this state: Traceback (most recent call last):
                                 ......
                                    with salt.utils.fopen(fn_, 'r') as fp_:
                                  File "/usr/lib/python2.7/dist-packages/salt/utils/__init__.py", line 1215, in fopen
                                    fhandle = open(*args, **kwargs)
                                IOError: [Errno 2] No such file or directory: '/tmp/cloudera.pem.pub'
                       Started: 10:23:41.860255
                      Duration: 180.815 ms
                       Changes:   
                  
                  Summary for cation-cdh-mgr1
                  ------------
                  Succeeded: 2 (changed=2)
                  Failed:    1
                  ------------
                  Total states run:     3
     Started: 10:23:16.032108
    Duration: 27262.98 ms
     Changes:   

Summary for cation-saltmaster_master
------------
Succeeded: 0
Failed:    1
------------
Total states run:     1
related to an answer for: can't access PNDA console

2 Answers

0 votes
answered Jun 18, 2017 by trsmith2 (3,440 points)
Since the deployment has failed the Console won't be accessible. It will be necessary to understand why the deployment has failed.
0 votes
answered Aug 1, 2017 by Saqib Arfeen (560 points)

Hello Yahli,
I saw your question late, but still somebody can benefit from it. I went through the same problem today and solved it. Thats how I did:-
1) The problem is that java install failed and hence all the big data and elasticsearch/cloudera/logstash failed to install on the nodes. The reason that java install failed is that now the default "http://download.oracle.com/otn-pub/java/jdk/8u74-b02/jdk-8u74-linux-x64.tar.gz" link no longer works without signin/authentication. To solve this , I manually downloaded the same java version and copy it to my package server (in apache folder to be accessible through http). To change the malfunctioning oracle java download link , I forked the "platform-salt" project on github and changed the java download link to my local packge server, and also chaged the saltRepo config in pnda_env.yaml as follows:-
 platform_git_repo_uri: 'https://github.com/saqibarfeen/platform-salt.git'
2) I re-ran the ./heat_cli -f pico  command and it took way too longer than previously , but finally it worked!
Hope this helps
Saqib

...