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

knife node status without a node name returns HTML #70

Open
tas50 opened this issue May 7, 2019 · 4 comments
Open

knife node status without a node name returns HTML #70

tas50 opened this issue May 7, 2019 · 4 comments
Assignees

Comments

@tas50
Copy link
Contributor

tas50 commented May 7, 2019

If you run knife node status without specifying a node name you receive back a 404 in HTML form instead of a proper error message:

knife node status
ERROR: The object you are looking for could not be found
Response: <!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
  <title>Chef - 404 Not Found</title>
  <link media="all" rel="stylesheet" type="text/css" href="/css/all.css" />
  <!--[if lt IE 7]><link rel="stylesheet" type="text/css" href="/css/lt7.css" /><![endif]-->
</head>
<body>
  <div class="header-block">
    <div id="header">
      <strong class="logo"><a href="https://www.chef.io">Chef</a></strong>
    </div>
  </div>
  <div id="wrapper">
    <div id="main">
      <div class="mybox">
        <div id="content">
          <h1>404 - Not Found</h1>
          <p>Sorry, I can't find what you are looking for.</p>
        </div>
      </div>
    </div>
  </div>
  <div class="footer-block">
    <div id="footer">
      <div class="mybox">
      </div>
      <div class="footer-bottom">
        <span>&copy; 2010&thinsp;&ndash;&thinsp;2017 Chef Software, Inc. All Rights Reserved</span>
      </div>
    </div>
  </div>
</body>
</html>
@samshinde
Copy link

I have installed knife-push gem and ran command knife node status without specifying a node name. It is not returning any output.
I am using knife-push (1.1.2) and Chef Infra Client (15.1.36). What version are you using?

Meanwhile, I can verify with chef 14.

@samshinde
Copy link

I have tested knife node status with knife-push (1.0.1) and Chef Infra Client (14.13.11). It is not returning any output.

@Vasu1105
Copy link

Vasu1105 commented Aug 6, 2019

@samshinde Please try Chef Infra Client 14.13.11 and knife-push version 1.1.2. Able to reproduce this I am trying on Ubuntu 18.04

@samshinde
Copy link

Hi @tas50
My observations are as follows,

For running knife node status command we need to install knife-push in workstation and opscode-push-jobs-server in chef-server.

knife-push get information about node status using the url chef-server-url/pushy/node_states

  • On the standalone server, I installed opscode-push-jobs-server and tried to reproduce the error, but I am not able to reproduce it.
  • On the hosted server, we can't install opscode-push-jobs-server, so the url chef-server-url/pushy/node_states is returning 404 page whether node name is passed or not.

Could you pls clarify what chef-server are you using?

Please suggest your view on this.

@lamont-granquist lamont-granquist transferred this issue from chef/chef Sep 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants