Commit Graph

18 Commits (f416aa695544fafe09a7be02f34cebc0f4d718b4)

Author SHA1 Message Date
Davanum Srinivas d82366f826 Tech Debt: Fixed code alignment issues
Just code reformatting in the objects/ folder

Closes-Bug: 1416789
Change-Id: I4dfd4412d032a2a67a370abfe673302b0820058d
2015-02-07 12:02:26 -05:00
Jay Lau (Guangya Liu) 63040c95d8 Remove API get() for some magnum objects
The get() API was not used by the following objects, just remove it.

1) node
2) pod
3) replication controller
4) service
5) container

Change-Id: I2f578f8d072d772bf34e676b115eccf6c08bac8a
2015-02-05 12:42:36 +08:00
Jay Lau (Guangya Liu) ce0ef7c421 Enable multi tenant for k8s resource get_xx_by_id
1) get_pod_by_id
2) get_service_by_id
3) get_rc_by_id

Implements part of bp multi-tenant

Change-Id: I4b3bb49984b14369e7d79c7981271b17d6169646
2015-02-05 04:32:04 +00:00
Jay Lau (Guangya Liu) 150139321a Enable multi tenant for k8s resource get_xxx_list
1) get_pdod_list
2) get_service_list
3) get_rc_list

Implements part of bp multi-tenant

Change-Id: I40cefd7f4f637808afbcf172a5d98fddee066f2b
2015-02-05 12:30:53 +08:00
Jay Lau (Guangya Liu) de93db51b9 Enable multi tenant for two k8s resource operation APIs
1) get_service_by_uuid
2) get_rc_by_uuid

Implements part of bp multi-tenant

Change-Id: Ib96e777bf73c7e29e1dc0834df273e11d14bd8c7
2015-02-05 12:21:49 +08:00
Jay Lau (Guangya Liu) 41f15002e3 Add project_id and user_id to service and rc
Implements part of bp multi-tenant

Change-Id: I0140e5233fc801b8353a65b8342a181a162f8cb4
2015-02-03 00:11:33 -05:00
OTSUKA, Yuanying a61f1ff719 Rename `resource`_data/url attributes to manifest/manifest_url
Pod, Service and ReplicationController have data and definition_url attribute,
but it's name is needlessly long.
This fixes it to more appropriate attribute name.

Change-Id: I64e8922ef8f6fc0dc4a7fda02aa0913ca15177e4
2015-01-16 15:14:38 +09:00
OTSUKA, Yuanying b982600545 Set service name from service manifest
Only service manifest knows about service name, so this patch retrieve service
name from service manifest.

Change-Id: I1eb0f7dd7227875e1d10e5bd1d22f7e989e15f86
2015-01-14 07:08:03 +09:00
OTSUKA, Yuanying bdabe2e592 Implement service creation
Service creation is working from magnum api now.

Change-Id: I97fbe4e47c444969ff77adb600b4fd7203eeb194
2015-01-08 16:40:18 +09:00
Hongbin Lu e54428845b Add tests for Pod and Service on dbapi
Did the following fix/modification to make the tests pass:
* Raise an exception on deleting non-existent pod or service.
* Rename the following methods:
  get_service_by_bay_uuid -> get_services_by_bay_uuid (db)
  get_by_bay_uuid -> list_by_bay_uuid (objects)

Change-Id: I7cbeb119550acecdbf0697df19172a8285eabca8
2015-01-03 21:09:45 +00:00
Jay Lau (Guangya Liu) 8ac4dc813f Service create need filename as parameter
This is the backend change for patch Iaae8486

The k8s service create only has one parameter as filename, this
patch is updating magnum backend api can use filename as parameter
when creating service.

Change-Id: I67f0cea72b00f1ce35bf3e8c49153daf1d2fff68
2014-12-31 07:43:09 -05:00
Jay Lau (Guangya Liu) 453952d102 Add more fields for service
Change-Id: I37ff2b98cd97bdebf599d5345a45e52bdd80b696
2014-12-30 08:42:06 -05:00
Jay Lau f872b84708 Remove redundant version info for magnum objects
Change-Id: I2956636c87d30374d60800cc56ca26ba2524604a
2014-12-24 04:54:54 -05:00
Pradeep Kilambi 598b9aae99 Implement Service object Rest APIs
Partially Implements: blueprint magnum-backend-kubernetes

Change-Id: I27bb1d4ec2174abb30e7770daaeab24c26987d01
2014-12-12 10:33:00 -05:00
Pradeep Kilambi 71458fb8ea Add bay uuid to Service Objects
Change-Id: Ia8b757d5bbe477c2de09b65f35409847fd1623c3
2014-12-11 14:19:44 -05:00
Steven Dake 3b5d9b1f40 Add object.service
Object.service is used for reading/writing the sql database.  They
are remoteable, so they can be called over RPC.

Change-Id: Ief4decc4aa2b4410df333a2aae4bf88709b28684
2014-12-02 20:36:21 -05:00
Steven Dake c95136fe6a Modify the object registry to support ver objects
Versioned objects are a nice way to pass objects around via RPC
which is necessary in our decided architecture.  Trying to implement
this again is pointless, as this code will soon enter oslo incubation
and likely become standard across projects.

Change-Id: Ic8b43606a5e37f1fe7e83b47225a2a50773468c9
2014-12-02 16:25:51 -07:00
Motohiro OTSUKA 370b577e8c Add simple objects interface and registry
Objects are
- objects/bay
- objects/pod
- objects/service
- objects/container

These code is based on Solum.

Change-Id: Id1f64417a86807964ebb4226547517587d8565eb
Implements: blueprint db-object-definitions
2014-11-27 15:52:05 +09:00