{ Community }
  • Academy
  • Docs
  • Developers
  • Resources
    • Community Articles
    • Apigee on GitHub
    • Code Samples
    • Videos & eBooks
    • Accelerator Methodology
  • Support
  • Ask a Question
  • Spaces
    • Product Announcements
    • General
    • Edge/API Management
    • Developer Portal (Drupal-based)
    • Developer Portal (Integrated)
    • API Design
    • APIM on Istio
    • Extensions
    • Business of APIs
    • Academy/Certification
    • Analytics
    • Events
    • Hybrid
    • Integration (AWS, PCF, Etc.)
    • Microgateway
    • Monetization
    • Private Cloud Deployment
    • Insights
    • IoT Apigee Link
    • BaaS/Usergrid
    • BaaS Transition/Migration
    • Apigee-127
    • New Customers
    • Topics
    • Questions
    • Articles
    • Ideas
    • Leaderboard
    • Badges
  • Log in
  • Sign up

Get answers, ideas, and support from the Apigee Community

  • Home /
  • Private Cloud Deployment /
avatar image
0
Question by Roman Federici · Mar 20, 2018 at 05:05 PM · 400 Views management serverinstallation errormanagement server APIprovisioningmanagement-serverscript error

"Application-datastore" not registered for central pod.

I am in the process of automating the deployment of an Apigee cluster. When the install process is completed, I attempt to run the following command to set up the initial organization:

$ apigee-service apigee-provision setup-org -f <provision-file>

It fails with the following error:

!!!! Error !!!!
HTTP STATUS CODE: 500
{
"code" : "organizations.ApplicationDatastoreServerIssue",
"message" : "application-datastore(cassandra) servers are down or not registered for central pod.",
"contexts" : [ ]
}

When I manually log in to the components, I can verify that all required services are running, and (seemingly) set up properly. I've troubleshooted the issue with this procedure, and my results are more or less the same.

I did notice that, as this user has also noted, I don't see "application-datastore" (or anything other than "management-server") listed under the "type" when querying the API for the central pod.

However, the only recommendation the user received was to uninstall and reinstall everything. I can safely say I've repeated the process quite a few times, and as the process is automated, I don't expect anything to be different if I were to continue.

My question is: Where is the field "type" being determined? What step did I apparently skip, which populates the "type" of the management server to contain these other values?

Comment
Add comment Show 2
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image vinay · Mar 21, 2018 at 04:35 AM 0
Link

1. Check what pods you have

curl -iu $ADMIN http://$MSIP:$port/v1/regions/<<dc>>/pods

2.Check against central pod to fetch all servers uUid

curl -u $ADMIN:$PW "http://$MSIP:$port/v1/servers?pod=central" | egrep -i '(type|internalip|uuid|region)

3. Verify the servers if they are properly configured to central pod(verify ip's).

curl -iu $ADMIN:$PW http://$MSIP:$port/v1/servers/<<uUID>>

It looks like data store which is in central pod is down or using incorrect configuration.It shouldn't be complex and quick add/remove from the central pod will resolve the issue.

-Vinay

avatar image Roman Federici vinay · Mar 21, 2018 at 02:45 PM 0
Link

I have three pods: analytics, central, and gateway.

Analytics and gateway are perfectly matched to the troubleshooting procedure I linked in the original post.

Central definitely has something missing.

Originally, like the troubleshooting guide, I thought I was missing the "application-datastore" (among others) from the management server's entry. However, we're using separate instances for Cassandra/Zookeeper (ds). After looking at these pods on a manually-configured cluster, it seems the pods are missing these ds entries entirely.

So my question becomes: how does one attach separate datastore instances to the pods?

Close

2 Answers

  • Sort: 
avatar image
1
Best Answer

Answer by potturiprasanth · Mar 21, 2018 at 04:00 PM

Hi @Roman Federici

You can try below curl command to add the missing data store manually to the central pod.

curl -v -u <username>:<password> http://<MSIP:PORT>/v1/servers -X POST -d "type=application-datastore®ion=<regionName>&pod=central∬ernalIP=<CassandraNodeIP>"

Repeat this with each of Cassandra IP in the cluster.

Thanks

Comment
Add comment Show 1 · Link
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Roman Federici · Mar 21, 2018 at 05:10 PM 0
Link

Thanks @potturiprasanth!

I came across this post about two hours ago that suggests a similar solution. I had to modify it a bit to work with our cluster, but the successful call was essentially the same. For those who were a bit confused at the "®" and "∫" characters:

curl -X POST -u <user>:<pass> http://<ms_ip>:8080/v1/servers -d "type=application&region=<region>&pod=central&internalIP=<cs_ip>

Previously, this step was taken care of by the apigee-setup script. I'm not sure why that script is not registering the Cassandra hosts anymore, but manually posting to the API for each Cassandra host seems to work in place.

Thank you!

Roman

P.S. - To "escape" an ampersand, you have to type "&amp" instead. E.g. "&ampint" instead of "&int"

avatar image
0

Answer by Simon Xuan · May 06 at 06:25 PM

This change fixed my issue as well. Just to point out the type should be "application-datastore"

curl -X POST -u <user>:<pass> http://<ms_ip>:8080/v1/servers -d "type=application-datastore&region=<region>&pod=central&internalIP=<cs_ip>
Comment
Add comment · Link
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Follow this Question

Answers Answers and Comments

54 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

usersandroles.LDAPConnectionFailed 0 Answers

Unable to authenticate with Management Server 1 Answer

Error Code keymanagement.service.DataStoreNotAdded 0 Answers

Connection timeout between (7199) Management server and Cassandra 3 Answers

Error Installing management-server, management-server failed to answer on 127.0.0.1 port 8080 1 Answer

  • Products
    • Edge - APIs
    • Insights - Big Data
    • Plans
  • Developers
    • Overview
    • Documentation
  • Resources
    • Overview
    • Blog
    • Apigee Institute
    • Academy
    • Documentation
  • Company
    • Overview
    • Press
    • Customers
    • Partners
    • Team
    • Events
    • Careers
    • Contact Us
  • Support
    • Support Overview
    • Documentation
    • Status
    • Edge Support Portal
    • Privacy Policy
    • Terms & Conditions
© 2019 Apigee Corp. All rights reserved. - Apigee Community Terms of Use - Powered by AnswerHub
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Post an idea
  • Spaces
  • Product Announcements
  • General
  • Edge/API Management
  • Developer Portal (Drupal-based)
  • Developer Portal (Integrated)
  • API Design
  • APIM on Istio
  • Extensions
  • Business of APIs
  • Academy/Certification
  • Analytics
  • Events
  • Hybrid
  • Integration (AWS, PCF, Etc.)
  • Microgateway
  • Monetization
  • Private Cloud Deployment
  • Insights
  • IoT Apigee Link
  • BaaS/Usergrid
  • BaaS Transition/Migration
  • Apigee-127
  • New Customers
  • Explore
  • Topics
  • Questions
  • Articles
  • Ideas
  • Members
  • Badges