<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>openshift &#8211; RobertoPolli.it</title>
	<atom:link href="https://www.robertopolli.it/?feed=rss2&#038;tag=openshift" rel="self" type="application/rss+xml" />
	<link>https://www.robertopolli.it</link>
	<description>Idee per la partecipazione, trasparenza e innovazione nella terza circoscrizione</description>
	<lastBuildDate>Sat, 15 Apr 2023 16:28:30 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.9.8</generator>
	<item>
		<title>Using http proxies in openshift java projects</title>
		<link>https://www.robertopolli.it/?p=473</link>
		<pubDate>Sun, 25 Feb 2018 08:48:09 +0000</pubDate>
		<dc:creator><![CDATA[roberto]]></dc:creator>
				<category><![CDATA[Politica]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[openshift]]></category>
		<category><![CDATA[proxy]]></category>

		<guid isPermaLink="false">http://www.robertopolli.it/?p=473</guid>
		<description><![CDATA[To use http proxies with java in openshift you should know: – that tools like maven don’t honor http_proxy &#038; co environment variables – that each container image has its own build script (assemble) that does or does NOT take http_proxy into account. Always check the image documentation if you need proxies: – https://docs.openshift.com/online/using_images/s2i_images/java.html – [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>To use http proxies with java in openshift you should know:</p>
<p>– that tools like maven don’t honor http_proxy &#038; co environment variables<br />
– that each container image has its own build script (assemble) that does or does NOT take http_proxy into account.</p>
<p>Always check the image documentation if you need proxies:</p>
<p>– https://docs.openshift.com/online/using_images/s2i_images/java.html<br />
– https://access.redhat.com/solutions/1758313<br />
– https://access.redhat.com/documentation/en-us/red_hat_jboss_enterprise_application_platform/7.0/html/red_hat_jboss_enterprise_application_platform_for_openshift/configuring_eap_openshift_image#configuring_eap_env_vars</p>
<p>A general and flexible solution is:</p>
<p>– to provide a configuration/settings.xml in your project, eg.</p>
<p>github.com/ioggstream/java-project.git<br />
&#8211; pom.xml<br />
&#8211; src/<br />
&#8211; configuration/settings.xml<br />
– add in settings.xml</p>
<p>openshift interpolates every *PROXY* environment variable stripping stuff, so you may not always be able to do</p>
<proxies>
   <proxy>
&#8230;<br />
      <host>${env.HTTP_PROXY_HOST}</host><br />
&#8230;<br />
JBoss images support the following variables via the `assemble` script:</p>
<p>– HTTP*_PROXY_HOST<br />
– HTTP*_PROXY_PORT</p>
<p>Another solution is to:</p>
<p>– get the assemble from the given image you’re using (different images, different assemble)<br />
– customize it so that it uses environment variables to build a custom settings.xml to be used within the build<br />
– add it to .s2i/bin/assemble</p>
<p>Here’s an example assemble supporting proxies https://github.com/ivanthelad/openshift-jee-sample/blob/jws/.sti/bin/assemble</p>
<div class="fblike_button" style="margin: 10px 0;"><iframe src="http://www.facebook.com/plugins/like.php?href=https%3A%2F%2Fwww.robertopolli.it%2F%3Fp%3D473&amp;layout=standard&amp;show_faces=false&amp;width=450&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:25px"></iframe></div>
]]></content:encoded>
			</item>
		<item>
		<title>Smoke testing openshift with ansible-galaxy</title>
		<link>https://www.robertopolli.it/?p=475</link>
		<pubDate>Sat, 25 Nov 2017 08:50:38 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[Politica]]></category>
		<category><![CDATA[ansible]]></category>
		<category><![CDATA[openshift]]></category>

		<guid isPermaLink="false">http://www.robertopolli.it/?p=475</guid>
		<description><![CDATA[The ansible-galaxy ioggstream.ocp_health role can run a smoke test on openshift in minutes: – etcd consistency – rhn subscriptions – master status – registry, ipfailover and router instances NOTE: it’s not a replacement of oadm diagnostics 😉 ansible-galaxy install ioggstream.ocp_health # eventually tweak parameters # vi /root/.ansible/roles/ioggstream.ocp_health/tests/ocp_health.yml ansible-playbook &#8211;check /root/.ansible/roles/ioggstream.ocp_health/tests/ocp_health.yml If you want to create [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>The ansible-galaxy ioggstream.ocp_health role can run a smoke test on openshift in minutes:</p>
<p>– etcd consistency<br />
– rhn subscriptions<br />
– master status<br />
– registry, ipfailover and router instances</p>
<p>NOTE: it’s not a replacement of oadm diagnostics <img src="https://s.w.org/images/core/emoji/11/72x72/1f609.png" alt="😉" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p>ansible-galaxy install ioggstream.ocp_health<br />
# eventually tweak parameters<br />
# vi /root/.ansible/roles/ioggstream.ocp_health/tests/ocp_health.yml<br />
ansible-playbook &#8211;check /root/.ansible/roles/ioggstream.ocp_health/tests/ocp_health.yml</p>
<p>If you want to create a test project with two apps, one with a PVC and one with an ephemeral, set create_test_project.</p>
<p>ansible-playbook -v -e create_test_project=yes /root/.ansible/roles/ioggstream.ocp_health/tests/ocp_health.yml</p>
<div class="fblike_button" style="margin: 10px 0;"><iframe src="http://www.facebook.com/plugins/like.php?href=https%3A%2F%2Fwww.robertopolli.it%2F%3Fp%3D475&amp;layout=standard&amp;show_faces=false&amp;width=450&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:25px"></iframe></div>
]]></content:encoded>
			</item>
		<item>
		<title>Brief Openshift troubleshooting</title>
		<link>https://www.robertopolli.it/?p=477</link>
		<comments>https://www.robertopolli.it/?p=477#respond</comments>
		<pubDate>Thu, 01 Jun 2017 08:52:08 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[Politica]]></category>
		<category><![CDATA[ansible]]></category>
		<category><![CDATA[openshift]]></category>
		<category><![CDATA[troubleshooting]]></category>

		<guid isPermaLink="false">http://www.robertopolli.it/?p=477</guid>
		<description><![CDATA[If you have issues after an automagic openshift-on-openstack deployment: 1. Remember: every buildconfig created *before* the registry is not authorized to push the images 2. Remember: hawkular is a java application. Startup is slow. Just click there and wait for the startup 3. Ansible is your friend. To get container logs, just ansible all -m [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>If you have issues after an automagic openshift-on-openstack deployment:</p>
<p>1. Remember: every buildconfig created *before* the registry is not authorized to push the images</p>
<p>2. Remember: hawkular is a java application. Startup is slow. Just click there and wait for the startup</p>
<p>3. Ansible is your friend. To get container logs, just</p>
<p>ansible all -m shell -a &#8216;ls /var/log/containers/CONTAINER_NAME*&#8217;</p>
<p>ansible all -m shell -a &#8216;cat /var/log/containers/CONTAINER_NAME*&#8217; > CONTAINER_NAME.log</p>
<p>4. If a container don’t startup during the deployment, a broken image may have been downloaded</p>
<p>Jun 1 23:30:36 dev-7-infra-0 atomic-openshift-node: I0601 23:30:36.234103 32913 server.go:608] Event(api.ObjectReference{Kind:&#8221;Pod&#8221;, Namespace:&#8221;default&#8221;, Name:&#8221;router-1-deploy&#8221;, UID:&#8221;033670a9-470e-11e7-878f-fa163eac2bf7&#8243;, APIVersion:&#8221;v1&#8243;, ResourceVersion:&#8221;936&#8243;, FieldPath:&#8221;&#8221;}): type: &#8216;Warning&#8217; reason: &#8216;FailedSync&#8217; Error syncing pod, skipping: failed to &#8220;StartContainer&#8221; for &#8220;POD&#8221; with RunContainerError: &#8220;runContainer: Error response from daemon: {\&#8221;message\&#8221;:\&#8221;invalid header field value \\\&#8221;oci runtime error: container_linux.go:247: starting container process caused \\\\\\\&#8221;exec: \\\\\\\\\\\\\\\&#8221;/pod\\\\\\\\\\\\\\\&#8221;: stat /pod: no such file or directory\\\\\\\&#8221;\\\\n\\\&#8221;\&#8221;}&#8221;</p>
<p>Cleanup docker repo</p>
<p>docker ps -aq | xargs docker rm<br />
docker rmi 90e9207f44f0 &#8211;force</p>
<p>5. Run oadm diagnostics on the master <img src="https://s.w.org/images/core/emoji/11/72x72/1f609.png" alt="😉" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p>6. Check #oc get hostsubnet</p>
<div class="fblike_button" style="margin: 10px 0;"><iframe src="http://www.facebook.com/plugins/like.php?href=https%3A%2F%2Fwww.robertopolli.it%2F%3Fp%3D477&amp;layout=standard&amp;show_faces=false&amp;width=450&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:25px"></iframe></div>
]]></content:encoded>
			<wfw:commentRss>https://www.robertopolli.it/?feed=rss2&#038;p=477</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
