clusterlabs / hawk-apiserver Goto Github PK
View Code? Open in Web Editor NEWNext generation HA cluster interface
License: GNU General Public License v3.0
Next generation HA cluster interface
License: GNU General Public License v3.0
Can anyone tell me how to authenticate to hawk using the rest apis
Setting up CI for Hawk-apiserver and Hawk ci when possible
Hi maintainers, I was wondering that if we are still actively developing this project, cause the last commit was on one year ago. May I ask that what the roadmap is for the future releases? Thanks.
Will output "Failed to connect to Pacemaker: -107: ENOTCONN Transport endpoint is not connected" for every 5 secs if pacemaker is stopped. Similar issues like "Failed to query CIB" and "Failed to subscribe"
Unnecessary to output the duplicate warning, or have a threshold for the numbers.
About PR #5
From my opinion, "/configuration/" prefix is not necessary.
I think keep the url path short and simple is fine.
"Method Path" like these is easy to remeber:
GET/POST/PUT/DELETE api/v1/nodes
GET/POST/PUT/DELETE api/v1/resources
Instead of:
GET/POST/PUT/DELETE api/v1/configuration/nodes
GET/POST/PUT/DELETE api/v1/configuration/resources
If we do not have some necessary reason like short path will have namespace or name conflict problem,
I suggest keep it for short
This issue comes from readme.md.
@krig you migh add some infos details about it. ๐
unify the hawk-apiserver with github action and introduce the test .
After release
Maybe some problems with the submodule config?
$ go get github.com/ClusterLabs/hawk-apiserver/
# cd /home/vvidic/go/src/github.com/ClusterLabs/hawk-apiserver; git submodule update --init --recursive
Submodule 'vendor/github.com/krig/go-pacemaker' ([email protected]:krig/go-pacemaker) registered for path 'vendor/github.com/krig/go-pacemaker'
Submodule 'vendor/github.com/sirupsen/logrus' ([email protected]:sirupsen/logrus) registered for path 'vendor/github.com/sirupsen/logrus'
Submodule 'vendor/golang.org/x/crypto' ([email protected]:golang/crypto) registered for path 'vendor/golang.org/x/crypto'
Submodule 'vendor/golang.org/x/net' ([email protected]:golang/net) registered for path 'vendor/golang.org/x/net'
Submodule 'vendor/golang.org/x/sys' ([email protected]:golang/sys) registered for path 'vendor/golang.org/x/sys'
Submodule 'vendor/gopkg.in/xmlpath.v2' ([email protected]:go-xmlpath/xmlpath.git) registered for path 'vendor/gopkg.in/xmlpath.v2'
Cloning into '/home/vvidic/go/src/github.com/ClusterLabs/hawk-apiserver/vendor/github.com/krig/go-pacemaker'...
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
fatal: clone of '[email protected]:krig/go-pacemaker' into submodule path '/home/vvidic/go/src/github.com/ClusterLabs/hawk-apiserver/vendor/github.com/krig/go-pacemaker' failed
Failed to clone 'vendor/github.com/krig/go-pacemaker'. Retry scheduled
Cloning into '/home/vvidic/go/src/github.com/ClusterLabs/hawk-apiserver/vendor/github.com/sirupsen/logrus'...
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
fatal: clone of '[email protected]:sirupsen/logrus' into submodule path '/home/vvidic/go/src/github.com/ClusterLabs/hawk-apiserver/vendor/github.com/sirupsen/logrus' failed
Failed to clone 'vendor/github.com/sirupsen/logrus'. Retry scheduled
Cloning into '/home/vvidic/go/src/github.com/ClusterLabs/hawk-apiserver/vendor/golang.org/x/sys'...
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
fatal: clone of '[email protected]:golang/sys' into submodule path '/home/vvidic/go/src/github.com/ClusterLabs/hawk-apiserver/vendor/golang.org/x/sys' failed
Failed to clone 'vendor/golang.org/x/sys'. Retry scheduled
Cloning into '/home/vvidic/go/src/github.com/ClusterLabs/hawk-apiserver/vendor/golang.org/x/crypto'...
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
fatal: clone of '[email protected]:golang/crypto' into submodule path '/home/vvidic/go/src/github.com/ClusterLabs/hawk-apiserver/vendor/golang.org/x/crypto' failed
Failed to clone 'vendor/golang.org/x/crypto'. Retry scheduled
Cloning into '/home/vvidic/go/src/github.com/ClusterLabs/hawk-apiserver/vendor/golang.org/x/net'...
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
fatal: clone of '[email protected]:golang/net' into submodule path '/home/vvidic/go/src/github.com/ClusterLabs/hawk-apiserver/vendor/golang.org/x/net' failed
Failed to clone 'vendor/golang.org/x/net'. Retry scheduled
Cloning into '/home/vvidic/go/src/github.com/ClusterLabs/hawk-apiserver/vendor/golang.org/x/net'...
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
fatal: clone of '[email protected]:golang/net' into submodule path '/home/vvidic/go/src/github.com/ClusterLabs/hawk-apiserver/vendor/golang.org/x/net' failed
Failed to clone 'vendor/golang.org/x/net' a second time, aborting
Cloning into '/home/vvidic/go/src/github.com/ClusterLabs/hawk-apiserver/vendor/gopkg.in/xmlpath.v2'...
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
fatal: clone of '[email protected]:go-xmlpath/xmlpath.git' into submodule path '/home/vvidic/go/src/github.com/ClusterLabs/hawk-apiserver/vendor/gopkg.in/xmlpath.v2' failed
Failed to clone 'vendor/gopkg.in/xmlpath.v2'. Retry scheduled
Cloning into '/home/vvidic/go/src/github.com/ClusterLabs/hawk-apiserver/vendor/github.com/sirupsen/logrus'...
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
fatal: clone of '[email protected]:sirupsen/logrus' into submodule path '/home/vvidic/go/src/github.com/ClusterLabs/hawk-apiserver/vendor/github.com/sirupsen/logrus' failed
Failed to clone 'vendor/github.com/sirupsen/logrus' a second time, aborting
Cloning into '/home/vvidic/go/src/github.com/ClusterLabs/hawk-apiserver/vendor/github.com/krig/go-pacemaker'...
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
fatal: clone of '[email protected]:krig/go-pacemaker' into submodule path '/home/vvidic/go/src/github.com/ClusterLabs/hawk-apiserver/vendor/github.com/krig/go-pacemaker' failed
Failed to clone 'vendor/github.com/krig/go-pacemaker' a second time, aborting
Cloning into '/home/vvidic/go/src/github.com/ClusterLabs/hawk-apiserver/vendor/golang.org/x/sys'...
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
fatal: clone of '[email protected]:golang/sys' into submodule path '/home/vvidic/go/src/github.com/ClusterLabs/hawk-apiserver/vendor/golang.org/x/sys' failed
Failed to clone 'vendor/golang.org/x/sys' a second time, aborting
Cloning into '/home/vvidic/go/src/github.com/ClusterLabs/hawk-apiserver/vendor/golang.org/x/crypto'...
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
fatal: clone of '[email protected]:golang/crypto' into submodule path '/home/vvidic/go/src/github.com/ClusterLabs/hawk-apiserver/vendor/golang.org/x/crypto' failed
Failed to clone 'vendor/golang.org/x/crypto' a second time, aborting
Cloning into '/home/vvidic/go/src/github.com/ClusterLabs/hawk-apiserver/vendor/gopkg.in/xmlpath.v2'...
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
fatal: clone of '[email protected]:go-xmlpath/xmlpath.git' into submodule path '/home/vvidic/go/src/github.com/ClusterLabs/hawk-apiserver/vendor/gopkg.in/xmlpath.v2' failed
Failed to clone 'vendor/gopkg.in/xmlpath.v2' a second time, aborting
package github.com/ClusterLabs/hawk-apiserver: exit status 1
IMHO we should not use vagrant but instead use terraform as deployment with the ha-deployment repo, we should bind to there.
https://github.com/ClusterLabs/hawk-apiserver#hacking-hawk-api-server
There should be some way to subscribe to CIB events via the API.
Exactly what form this should take (WebSockets, long polling, etc.)
remains to be decided.
hawk-apiserver running on port 7630 is showing security warning Missing 'HttpOnly' Cookie Attribute (HTTP). Is there a way to enable httponly cookie on this configuration.
We should not depends from custom tools for generating the xml structs.
We should import the python script into this repo and tools
directory, so we don't have external dependency to repos.
https://github.com/ClusterLabs/hawk-apiserver#generating-the-api-structures
currently we use this
https://github.com/ClusterLabs/hawk-apiserver/blob/master/cib/asynccib.go#L5
and also in vendor.
We should switch in codebase and vendor to official pkgs upstream ClusterLabs
this was originatelly from Readme.md
@krig maybe you could add more inside infos here.
( I plan to remove the todos from readme.md)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.