Comments (13)
logger.setLevel(max(logging.ERROR - (self.options.verbose * 10), 1))
seem a bit weird. Could we adopt the same convention as for salt with --log-level all
(all|debug|info|warn) etc.
from pepper.
I can't reproduce this. What version are you on? What is the full command you're running? What is the expected vs. actual output?
% pepper --debug-http -u http://localhost:8000 '*' test.ping
send: 'POST /login HTTP/1.1\r\nAccept-Encoding: identity\r\nContent-Length: 63\r\nConnection: close\r\nAccept: application/json\r\nUser-Agent: Python-urllib/2.7\r\nHost: localhost:8000\r\nX-Requested-With: XMLHttpRequest\r\nContent-Type: application/json\r\n\r\n{"username": "saltdev", "password": "saltdev", "eauth": "auto"}'
reply: 'HTTP/1.1 200 OK\r\n'
header: Content-Length: 198
header: Access-Control-Expose-Headers: GET, POST
header: Vary: Accept-Encoding
header: Server: CherryPy/3.2.4
header: Allow: GET, HEAD, POST
header: Access-Control-Allow-Credentials: true
header: Date: Wed, 24 Jun 2015 19:30:14 GMT
header: Access-Control-Allow-Origin: *
header: X-Auth-Token: 0da8ccc7a05de1389b50364d762f7c96fa982365
header: Content-Type: application/json
header: Set-Cookie: session_id=0da8ccc7a05de1389b50364d762f7c96fa982365; expires=Thu, 25 Jun 2015 05:30:14 GMT; Path=/
header: Connection: close
send: 'POST / HTTP/1.1\r\nAccept-Encoding: identity\r\nContent-Length: 80\r\nConnection: close\r\nAccept: application/json\r\nX-Auth-Token: 0da8ccc7a05de1389b50364d762f7c96fa982365\r\nHost: localhost:8000\r\nX-Requested-With: XMLHttpRequest\r\nUser-Agent: Python-urllib/2.7\r\nContent-Type: application/json\r\n\r\n[{"fun": "test.ping", "client": "local_async", "expr_form": "glob", "tgt": "*"}]'
reply: 'HTTP/1.1 200 OK\r\n'
header: Content-Length: 107
header: Access-Control-Expose-Headers: GET, POST
header: Access-Control-Allow-Credentials: true
header: Vary: Accept-Encoding
header: Server: CherryPy/3.2.4
header: Allow: GET, HEAD, POST
header: Cache-Control: private
header: Date: Wed, 24 Jun 2015 19:30:14 GMT
header: Access-Control-Allow-Origin: *
header: Content-Type: application/json
header: Set-Cookie: session_id=0da8ccc7a05de1389b50364d762f7c96fa982365; expires=Thu, 25 Jun 2015 05:30:14 GMT; Path=/
header: Connection: close
send: 'POST / HTTP/1.1\r\nAccept-Encoding: identity\r\nContent-Length: 79\r\nConnection: close\r\nAccept: application/json\r\nX-Auth-Token: 0da8ccc7a05de1389b50364d762f7c96fa982365\r\nHost: localhost:8000\r\nX-Requested-With: XMLHttpRequest\r\nUser-Agent: Python-urllib/2.7\r\nContent-Type: application/json\r\n\r\n[{"fun": "jobs.lookup_jid", "jid": "20150624133014974350", "client": "runner"}]'
reply: 'HTTP/1.1 200 OK\r\n'
header: Content-Length: 29
header: Access-Control-Expose-Headers: GET, POST
header: Access-Control-Allow-Credentials: true
header: Vary: Accept-Encoding
header: Server: CherryPy/3.2.4
header: Allow: GET, HEAD, POST
header: Cache-Control: private
header: Date: Wed, 24 Jun 2015 19:30:18 GMT
header: Access-Control-Allow-Origin: *
header: Content-Type: application/json
header: Set-Cookie: session_id=0da8ccc7a05de1389b50364d762f7c96fa982365; expires=Thu, 25 Jun 2015 05:30:18 GMT; Path=/
header: Connection: close
{
"jerry": true
}
from pepper.
$ pepper --version
0.2.0.dev37
I don't have any of the header/send/reply information. Looks nice, I hope we can get it work.
from pepper.
That version number looks odd. Related to #39 I'll bet.
from pepper.
I am experiencing the same issue. Using v0.4.1. I get the output of the command, but no debug/http data.
root@53ac749c6d63:/# pepper --version
0.4.1
root@53ac749c6d63:/# pepper -H '*' test.ping
{
"return": [
{
"mongodb-backup-generic-test-i-00a2e54a978f64d21": true,
"mongodb-generic-test-i-001c928a68509fae0": true,
"mongodb-generic-test-i-03ca19e8101889f54": true,
"salt-master": true
}
]
}
root@53ac749c6d63:/# pepper -H '*' test.ping 2>&1
{
"return": [
{
"mongodb-backup-generic-test-i-00a2e54a978f64d21": true,
"mongodb-generic-test-i-001c928a68509fae0": true,
"mongodb-generic-test-i-03ca19e8101889f54": true,
"salt-master": true
}
]
}
from pepper.
I believe this was fixed on the develop branch. Please try on the newly cut 0.5.0 release.
from pepper.
Maybe it is related to #138
from pepper.
@rgeyer @arthurlogilab can yall check if the new version has fixed this issue?
Thanks,
Daniel
from pepper.
Holy resurrected issue batman!
Sadly, I no longer have access to a working saltstack so I can't confirm.
from pepper.
Ok, thanks for responding!
from pepper.
@gtmanfred I just tried it with pepper 0.7.1 from PyPI, and it doesn't work.
from pepper.
And more specifically, it's running under Python 3.6.
from pepper.
sounds good, i will take a closer look when I have time.
from pepper.
Related Issues (20)
- [BUG] Can't send pillar data in kwarg HOT 2
- using pepper with tokens does not honor profiles HOT 1
- Add changelog HOT 1
- Release 0.7.6 breaks --fail-any-none flag HOT 1
- Server error on jobs.lookup_jid with runner client HOT 3
- saving the response to file on MacOS add random characters HOT 4
- pepper.cmd wrapper not included in pip package
- No way to pass tgt_type to API HOT 1
- Should provide a logout function
- Unable to use --state-output=mixed --state-verbose=false with pepper HOT 2
- TLS issues are always ignored HOT 1
- Migrate Travis CI jobs to GitHub Actions HOT 1
- Installing salt-pepper 0.5.5-1 on ubuntu 20.04 failing: cli.py:474: SyntaxWarning: "is not" with a literal. Did you mean "!="?
- Makefile not working on ubuntu 18.04 dev machine
- ~/.pepperc not referred on latest 0.7.6 HOT 1
- Using pepper to get list of registered salt-minions ? HOT 2
- Fix failing test suite HOT 1
- Pepper no longer respecting --out flag HOT 5
- [CI] Remove Python 3.7 in favor of 3.11
- pytest.helpers.remove_stale_minion_key not registered
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pepper.