Skip to content

Instantly share code, notes, and snippets.

@vksuktha
vksuktha / gist:6869347
Created October 7, 2013 14:55
example to show ResourceNotFound erroe
package com.vijayks.jclouds;
import org.jclouds.ContextBuilder;
import org.jclouds.compute.ComputeServiceContext;
import org.jclouds.compute.ComputeService;
import org.jclouds.domain.Credentials;
import org.jclouds.logging.slf4j.config.SLF4JLoggingModule;
import org.jclouds.openstack.keystone.v2_0.domain.Access;
import org.jclouds.openstack.nova.v2_0.config.NovaParserModule;
import org.jclouds.openstack.nova.v2_0.NovaApi;
import org.jclouds.openstack.nova.v2_0.NovaAsyncApi;
I am using devstack...
org.jclouds.rest.ResourceNotFoundException: {"error": {"message": "The resource could not be found.", "code": 404, "title": "Not Found"}}
at org.jclouds.openstack.nova.v2_0.handlers.NovaErrorHandler.handleError(NovaErrorHandler.java:102)
at org.jclouds.http.handlers.DelegatingErrorHandler.handleError(DelegatingErrorHandler.java:69)
at org.jclouds.http.internal.BaseHttpCommandExecutorService.shouldContinue(BaseHttpCommandExecutorService.java:182)
at org.jclouds.http.internal.BaseHttpCommandExecutorService.invoke(BaseHttpCommandExecutorService.java:152)
at org.jclouds.rest.internal.InvokeSyncToAsyncHttpMethod.invoke(InvokeSyncToAsyncHttpMethod.java:133)
public class JCloudsManualAuthentication {
private ComputeService compute;
private static RestContext<NovaApi, NovaAsyncApi> nova;
private static Set<String> zones;
private String selected_image_id;
private String selected_flavor_id;
public static void main(String[] args) {
JCloudsManualAuthentication authentication = new JCloudsManualAuthentication();
@vksuktha
vksuktha / AWS Solutions Architect Associate
Created August 28, 2017 04:09 — forked from pareddy113/AWS Solutions Architect Associate
AWS Solutions Architect Associate 2017- ACloud Guru course
----- Interested Reads------
+ Interesting Read (Serverless Architecture of Acloud guru)
https://read.acloud.guru/serverless-the-future-of-software-architecture-d4473ffed864
----- Getting Started-------
+ Requirements
+ AWS Free Tier Account
+ PC with putty and putty keygen/ Mac
+ Optional
+ IoS/ Android App $20
@vksuktha
vksuktha / .vimrc
Created March 24, 2020 04:47
.vimrc changes to support yaml
filetype plugin indent on
syntax on
"Get the 2-space YAML as the default when hit carriage return after the colon
autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab
@vksuktha
vksuktha / gist:08fe77c383328c9aa50e306c780aac5c
Last active July 24, 2020 10:13
K8s run a debug/curl shell
kubectl run -it --image=tutum/curl client --namespace debugtools --restart=Never
kubectl run -it --image=cosmintitei/bash-curl --restart=Never --rm
Knowledge
1)study all topics as proposed in the curriculum till you feel comfortable with all
2) do all of these, maybe 2–3 times BUT USING KUBECTL 1.18: https://github.com/dgkanatsios/CKAD-exercises
3) we have a series with scenarios on Medium, do all of these. Also imagine and create your own ones.
4) read this and do all examples: https://kubernetes.io/docs/concepts/cluster-administration/logging
5) understand Rolling Update Deployment including maxSurge and maxUnavailable
6) understand network policy including what are default on the cluster and how to edit it.
7) practise few times on kubectl 1.18 on https://medium.com/bb-tutorials-and-thoughts/practice-enough-with-these-questions-for-the-ckad-exam-2f42d1228552
8) for detailed practise after finishing all - do this -https://codeburst.io/kubernetes-ckad-weekly-challenges-overview-and-tips-7282b36a2681