Managed VM Network Setting

86 views
Skip to first unread message

Jun Xie

unread,
Jun 19, 2015, 9:13:48 PM6/19/15
to google-a...@googlegroups.com
I am trying to build an elasticsearch service on top of Managed VM environment. For elastic search, there are two ports which should be open, including 9200 and 9300. I have the following network configuration in appengine-web.xml:

<network>
<forwarded-port>9200</forwarded-port>
<forwarded-port>9300</forwarded-port>
<instance-tag>"test"</instance-tag>
<name>"default"</name>
</network>

I always get this error:
Bad configuration: XML error validating /Users/jun.xie/Projects/gmanagedvm/java/elastic-search/target/guestbook-stage2-1.0-SNAPSHOT/WEB-INF/appengine-web.xml against /Users/jun.xie/.m2/repository/com/google/appengine/appengine-java-sdk/1.9.20/appengine-java-sdk/appengine-java-sdk-1.9.20/docs/appengine-web.xsd
Caused by: cvc-complex-type.2.4.a: Invalid content was found starting with element 'forwarded-port'. One of '{"http://appengine.google.com/ns/1.0":instance-tag, "http://appengine.google.com/ns/1.0":name}' is expected.

If I delete one port line, for example, just have:

<network>
<forwarded-port>9200</forwarded-port>
<instance-tag>"test"</instance-tag>
<name>"default"</name>
</network>

I can deploy the application successfully (mvn cloud:deploy) and there is no error.

It is very strange. Any thought?

Michael (Cloud Platform Support)

unread,
Jun 23, 2015, 10:14:10 AM6/23/15
to google-a...@googlegroups.com, xiej...@gmail.com
Hi Jun!

Thanks for bringing this to our attention. I have successfully reproduced the behavior, and it seems as though we are now restricted to only one forwarded port. I have created a new Issue in the App Engine Issue Tracker here and have submitted the report to our engineering team. I highly recommend you star the issue, as any further updates will be posted there, which it will then notify you of.

Cheers!
Reply all
Reply to author
Forward
0 new messages