Skip to content

Instantly share code, notes, and snippets.

View alena1108's full-sized avatar

Alena Prokharchyk alena1108

View GitHub Profile
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.3.xsd http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd">
<property name="mediumtext" value="TEXT" dbms="postgresql" />
<property name="mediumtext" value="MEDIUMTEXT" />
<changeSet author="alena (generated)" id="dump1" objectQuotingStrategy="QUOTE_ALL_OBJECTS">
<createTable tableName="load_balancer">
<column autoIncrement="true" name="id" type="BIGINT">
<constraints primaryKey="true"/>
</column>
<column name="name" type="VARCHAR(255)"/>
@alena1108
alena1108 / gist:b81781166cfb3a755598
Created December 3, 2015 07:01
Config item stuck
2015-12-03 07:00:44,085 INFO [a9135e8f-c670-4507-990a-a5eeb4d9f02b:82] [agent:6] [agent.activate->(AgentActivate)] [] [cutorService-13] [p.a.s.c.i.Age ntConnectionManagerImpl] Creating connection to agent [6] [delegate:///?vnetId=5&networkServiceProviderId=4]
383367 2015-12-03 07:00:44,086 INFO [a9135e8f-c670-4507-990a-a5eeb4d9f02b:82] [agent:6] [agent.activate->(AgentActivate)] [] [cutorService-13] [a.c.d.AgentDe legateConnectionFactory] Instance [13] is not running, actual state [starting]
383368 2015-12-03 07:00:44,086 INFO [a9135e8f-c670-4507-990a-a5eeb4d9f02b:82] [agent:6] [agent.activate->(AgentActivate)] [] [cutorService-13] [p.a.s.c.i.Age ntConnectionManagerImpl] No connection factory created a connection for agent [6] [delegate:///?vnetId=5&networkServiceProviderId=4]
383369 2015-12-03 07:00:44,086 INFO [a9135e8f-c670-4507-990a-a5eeb4d9f02b:82] [agent:6] [agent.activate->(AgentActivate)] [] [ecutorService-9] [p.a.s.c.i.Age ntConnectionManagerImpl] Creating connection to ag
'2015-07-25':
containers: &id018
- &id003
create_index: null
health_state: null
host_uuid: 5872f813-0a5e-4a27-b824-083b9b87dea9
hostname: default
ips:
- 10.42.41.188
labels: &id002 {}
'2015-07-25': &id011
default:
containers: &id012
- &id001
create_index: 1
health_state: null
host_uuid: 515ef0f5-9826-4b07-b041-db0785098661
hostname: default
ips:
- 10.42.75.49
@alena1108
alena1108 / gist:67d1afa0ef3ee15f946a
Created January 26, 2016 17:44
k8s rancher-compose
api-server:
service_schemas:
kubernetesReplicationController:
resource_fields:
template:
type: json
create: true
read: true
update: true
kubernetesService:
func (s *Server) parseData(dataStr string, obj interface{}) error {
type Data struct {
Fields interface{} `json:"fields"`
}
data := Data{}
bytes := []byte(dataStr)
{
"default": {
"search": [],
"recurse": ["8.8.8.8"],
"a": {
"rancher-metadata.rancher.internal.": {
"answer": ["169.254.169.250"]
},
"default_bar_1.bar.default.rancher.internal.": {
"answer": ["10.42.72.228"]
{
"default": {
"search": [],
"recurse": ["8.8.8.8"],
"a": {
"rancher-metadata.rancher.internal.": {
"answer": ["169.254.169.250"]
}
},
"cname": {}
192016 | 8 | 8 | auditLog | BasicAuth | api.loadBalancerService.create | loadBalancerService | 40398 | NULL | 2016-03-17 19:01:26 | {"fields":{"responseCode":201,"requestObject":"{\"launchConfig\":{\"ports\":[\"80:31145/tcp\"],\"kind\":\"container\",\"networkMode\":\"managed\",\"privileged\":false,\"publishAllPorts\":false,\"readOnly\":false,\"startOnCreate\":true,\"stdinOpen\":false,\"tty\":false,\"version\":\"0\",\"vcpu\":1,\"healthCheck\":{\"name\":null,\"responseTimeout\":2000,\"interval\":2000,\"healthyThreshold\":2,\"unhealthyThreshold\":3,\"requestLine\":null,\"port\":42,\"strategy\":null,\"recreateOnQuorumStrategyConfig\":null,\"initializingTimeout\":null,\"reinitializingTimeout\":null}},\"name\":\"lb-abd710dd6eb5a11e59d5902015411a6c\",\"environmentId\":4,\"assignServiceIpAddress\":false,\"scale\":1}","responseObject":"{\"id\":\"1s40398\",\"type\":\"loadBalancerService\",\"links\":{\"self\":\"http://10.72.0.195:8080/v1/loadbalancerservices/1s40398\",\"ac
20:58:04.854024 IP 10.42.185.88.42721 > 169.254.169.250.domain: 15408+ A? mongo.mongodb.rancher.internal. (48)
E..L0.@[email protected]
*.X.......5.8..<0...........mongo.mongodb.rancher.internal.....
20:58:04.854114 IP 169.254.169.250.domain > 10.42.185.88.42721: 15408* 1/0/0 A 10.42.108.142 (64)
E..\..@[email protected] ....
*.X.5...H..<0...........mongo.mongodb.rancher.internal.................
*l.
20:58:04.854138 IP 10.42.185.88.42721 > 169.254.169.250.domain: 35942+ AAAA? mongo.mongodb.rancher.internal. (48)
E..L0.@[email protected]
*.X.......5.8...f...........mongo.mongodb.rancher.internal.....