See <https://builds.apache.org/job/incubator-trafficcontrol-master-build/581/display/redirect?page=changes>
Changes: [dewrich] migration for new delivery_service_request table [dewrich] deliveryservice_request GET endpoint [dewrich] GetAuditName() [dewrich] use CurrentUser as author [dewrich] fix lastUpdated on read [dewrich] fix GET .../:id [dewrich] adds db for Validate calls on ds request [dewrich] cleanup of log msgs. not using sprintf when reasonable [dewrich] error if updating ds request results in conflict with another request [dewrich] just add authorid to struct [dewrich] check for conflicting ds on insert [dewrich] add deliveryservice_request validation [dewrich] change import name to dsrequest [dewrich] order ds request by xml_id [dewrich] ORDER BY must occur after WHERE [dewrich] adds tenancy check to ds request create/update/delete [dewrich] adjust priv level [dewrich] add tenancy checks to generic handlers [dewrich] use generic tenancy check [dewrich] rename ds request to nullable [dewrich] temp workaround for test [dewrich] adjust imports [dewrich] initial version of the dsrequests API test [dewrich] added non-nil fields for the TO Client [dewrich] removed date stamps for testing [dewrich] formatted which removed import [dewrich] updated for tenancy test data [dewrich] get tenantid from json blob [dewrich] return after handling errors [dewrich] close results; ensure err available on defer [dewrich] finish request validation [dewrich] fix JSON id for tenant [dewrich] centralize info from deliveryservice [dewrich] query by xmlid; response key lowcased [dewrich] remove validation for authorID -- not needed [dewrich] change request to deliveryservice; fix api test [dewrich] use deliveryService consistently [dewrich] added TO client methods GetDeliveryServiceRequestByID and [dewrich] added functionality for GetDeliveryServiceByXMLID to the TO Client and [dewrich] removed the db struct tags from the non-nullable [dewrich] added nil checking to GreaterThanZero [dewrich] refactored to support custom rules [dewrich] successful test over the API to verify remote validation rules [dewrich] added more test cases to cover the rest of the validation rules [dewrich] use *Time for lastUpdated [dewrich] fix json for tenantId case [dewrich] added debugln's for troubleshooting [dewrich] removed authorId from the test data [dewrich] aligned the deliveryservice request on the TO client side [dewrich] added debug print stmts for troubleshooting [dewrich] updating to help debug [database access error] [dewrich] add DeepCachingType to nullable ds [dewrich] add missing last_edited_by [dewrich] api test fix [dewrich] added functionality for DELETE DSR [dewrich] adjusted the test error message [dewrich] if ds not in request, get from db [dewrich] disallow JSON unmarshalling on select fields [dewrich] handle auto fields in ds request [dewrich] fixes ds validation for booleans [dewrich] update api tests [dewrich] use auth.PrivLevel* [dewrich] add missing field in test data [dewrich] allow 0 value for dscp [dewrich] adjust tenants in tests [dewrich] add state transition check [dewrich] move RequestStatus to tcs/deliveryservice_requests [dewrich] move status tests [dewrich] move Status to tc/deliveryservice_requests [dewrich] blank request means draft [dewrich] remove required condition for status -- blank has a default [dewrich] improve tests [dewrich] still using json.RawMessage for ds in request [dewrich] export GetDeliveryService from request [dewrich] replace json.RawMessage with ds struct ptr [dewrich] RequestStatus as string [dewrich] fix requeststatus json unmarshalling and tests [dewrich] fix request validation [dewrich] remove lastUpdated from query params [dewrich] simplify some ds validations [dewrich] uses generic Read handler [dewrich] adds tests for ds request workflow [dewrich] skip rollback on success [dewrich] filter ds requests on Read for tenancy [dewrich] disallow any status but 'draft' or 'submitted' for new request [dewrich] add test for bad ds request insert [dewrich] get routes on ds request should be read only [dewrich] add routes for status and assignee updates [dewrich] no need to export types for status and assignee updates [dewrich] get lastEditedBy username; fix update stmt [dewrich] Signed changed to SigningAlgorithm [dewrich] only allow normal update to change status between draft and submitted [dewrich] needs to return entire updated ds request [dewrich] don't allow deleting request with status complete, pending, rejected [dewrich] removes status validation due to bug on POST [dewrich] for DeliveryServiceNullable, turned all the fields into pointers as the [dewrich] add interfaces test for deliveryservices [dewrich] add interface tests for ds request [dewrich] GetID() returns id and status [dewrich] fix interfaces on ds [dewrich] revert change to tenancy interface [dewrich] ds request now fully nullable [dewrich] expect status ptr [dewrich] fix message [dewrich] remove quotes for storage of request status [dewrich] look for xmlId in json blob ------------------------------------------ Started by an SCM change [EnvInject] - Loading node environment variables. Building remotely on H21 (ubuntu xenial) in workspace <https://builds.apache.org/job/incubator-trafficcontrol-master-build/ws/> [WS-CLEANUP] Deleting project workspace... [WS-CLEANUP] Done Cloning the remote Git repository Cloning repository git://github.com/apache/incubator-trafficcontrol.git > git init > <https://builds.apache.org/job/incubator-trafficcontrol-master-build/ws/> # > timeout=10 Fetching upstream changes from git://github.com/apache/incubator-trafficcontrol.git > git --version # timeout=10 using GIT_SSH to set credentials > git fetch --tags --progress > git://github.com/apache/incubator-trafficcontrol.git > +refs/heads/*:refs/remotes/origin/* > git config remote.origin.url > git://github.com/apache/incubator-trafficcontrol.git # timeout=10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # > timeout=10 > git config remote.origin.url > git://github.com/apache/incubator-trafficcontrol.git # timeout=10 Fetching upstream changes from git://github.com/apache/incubator-trafficcontrol.git using GIT_SSH to set credentials > git fetch --tags --progress > git://github.com/apache/incubator-trafficcontrol.git > +refs/heads/*:refs/remotes/origin/* > git rev-parse refs/remotes/origin/master^{commit} # timeout=10 > git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10 Checking out Revision 35c36b4a04d94387b0ca99f534da0f881368a6b3 (refs/remotes/origin/master) > git config core.sparsecheckout # timeout=10 > git checkout -f 35c36b4a04d94387b0ca99f534da0f881368a6b3 Commit message: "look for xmlId in json blob" > git rev-list --no-walk ba5200ab2be7038b9bfa76b3c9d7cefee1df9127 # timeout=10 [incubator-trafficcontrol-master-build] $ /bin/bash /tmp/jenkins2643806289476346437.sh + docker system prune -f Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? + proj=jenkins-incubator-trafficcontrol-master-build-581 + '[' '!' -x bin/docker-compose ']' + mkdir bin ++ uname -s ++ uname -m + curl -L https://github.com/docker/compose/releases/download/1.13.0/docker-compose-Linux-x86_64 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0100 617 0 617 0 0 2191 0 --:--:-- --:--:-- --:--:-- 2195 0 8079k 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 11 8079k 11 916k 0 0 518k 0 0:00:15 0:00:01 0:00:14 964k100 8079k 100 8079k 0 0 3217k 0 0:00:02 0:00:02 --:--:-- 4769k + chmod +x ./bin/docker-compose + docker version Client: Version: 17.05.0-ce API version: 1.29 Go version: go1.7.5 Git commit: 89658be Built: Thu May 4 22:10:54 2017 OS/Arch: linux/amd64 Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? + rm -rf dist + ./bin/docker-compose -p jenkins-incubator-trafficcontrol-master-build-581 -f infrastructure/docker/build/docker-compose.yml down -v WARNING: Dependency conflict: an older version of the 'docker-py' package may be polluting the namespace. If you're experiencing crashes, run the following command to remedy the issue: pip uninstall docker-py; pip uninstall docker; pip install docker Couldn't connect to Docker daemon at http+docker://localunixsocket - is it running? If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable. + ./bin/docker-compose -p jenkins-incubator-trafficcontrol-master-build-581 -f infrastructure/docker/build/docker-compose.yml up --build WARNING: Dependency conflict: an older version of the 'docker-py' package may be polluting the namespace. If you're experiencing crashes, run the following command to remedy the issue: pip uninstall docker-py; pip uninstall docker; pip install docker Couldn't connect to Docker daemon at http+docker://localunixsocket - is it running? If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable. + docker ps -a + grep traffic Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? + docker images + grep traffic Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? + ./bin/docker-compose -p jenkins-incubator-trafficcontrol-master-build-581 -f infrastructure/docker/build/docker-compose.yml down -v WARNING: Dependency conflict: an older version of the 'docker-py' package may be polluting the namespace. If you're experiencing crashes, run the following command to remedy the issue: pip uninstall docker-py; pip uninstall docker; pip install docker Couldn't connect to Docker daemon at http+docker://localunixsocket - is it running? If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable. Build step 'Execute shell' marked build as failure Archiving artifacts
