2024-10-25 15:21:17,160 - INFO - Domain Default found not creating
2024-10-25 15:21:17,363 - INFO - Project ctest-TestBasicPolicy-08013294 not found, creating it
2024-10-25 15:21:17,890 - INFO - Created Project:ctest-TestBasicPolicy-08013294, ID : 4ca4d78d-1d26-4028-a0ec-e5d713c3884c
2024-10-25 15:21:19,726 - INFO - ================================================================================
2024-10-25 15:21:19,726 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-10-25 15:21:19,726 - INFO - TEST DESCRIPTION :
Create 2 Vns and allow icmp traffic between them and validate with pings
Update the policy to deny the same traffic
Check that pings fail
2024-10-25 15:21:19,999 - DEBUG - Nothing to compare xmpp stats {'10.0.0.31': {'10.20.0.14': '0'}} with
2024-10-25 15:21:19,999 - INFO - Initial checks done. Running the testcase now
2024-10-25 15:21:19,999 - INFO -
2024-10-25 15:21:20,672 - DEBUG - Response for create_network : {'network': {'id': 'b0cc5da0-6a3c-4b7a-a07d-690a10ed96d3', 'name': 'ctest-vn-59290387', 'tenant_id': '4ca4d78d1d264028a0ece5d713c3884c', 'project_id': '4ca4d78d1d264028a0ece5d713c3884c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08013294', 'ctest-vn-59290387'], 'port_security_enabled': True, 'description': ''}}
2024-10-25 15:21:20,921 - DEBUG - Response for create_subnet : {'subnet': {'id': '881163b8-54bf-46c6-ae7b-88c2caf348a8', 'name': '', 'tenant_id': '4ca4d78d1d264028a0ece5d713c3884c', 'network_id': 'b0cc5da0-6a3c-4b7a-a07d-690a10ed96d3', 'ip_version': 4, 'cidr': '109.228.251.0/26', 'allocation_pools': [{'start': '109.228.251.2', 'end': '109.228.251.62'}], 'gateway_ip': '109.228.251.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '109.228.251.2', 'tags': [], 'project_id': '4ca4d78d1d264028a0ece5d713c3884c'}}
2024-10-25 15:21:20,945 - INFO - Created VN ctest-vn-59290387
2024-10-25 15:21:21,008 - DEBUG - VN ctest-vn-59290387 UUID is b0cc5da0-6a3c-4b7a-a07d-690a10ed96d3
2024-10-25 15:21:21,393 - DEBUG - Response for create_network : {'network': {'id': '476b9475-da8d-4a61-aa80-4d38392226c2', 'name': 'ctest-vn-86761803', 'tenant_id': '4ca4d78d1d264028a0ece5d713c3884c', 'project_id': '4ca4d78d1d264028a0ece5d713c3884c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08013294', 'ctest-vn-86761803'], 'port_security_enabled': True, 'description': ''}}
2024-10-25 15:21:21,659 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b35f0a6b-92dd-4003-8289-530177bbd155', 'name': '', 'tenant_id': '4ca4d78d1d264028a0ece5d713c3884c', 'network_id': '476b9475-da8d-4a61-aa80-4d38392226c2', 'ip_version': 4, 'cidr': '144.138.17.64/26', 'allocation_pools': [{'start': '144.138.17.66', 'end': '144.138.17.126'}], 'gateway_ip': '144.138.17.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '144.138.17.66', 'tags': [], 'project_id': '4ca4d78d1d264028a0ece5d713c3884c'}}
2024-10-25 15:21:21,683 - INFO - Created VN ctest-vn-86761803
2024-10-25 15:21:21,744 - DEBUG - VN ctest-vn-86761803 UUID is 476b9475-da8d-4a61-aa80-4d38392226c2
2024-10-25 15:21:21,880 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-08013294:ctest-vn-59290387, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-08013294:ctest-vn-86761803, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None]
2024-10-25 15:21:22,231 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b0cc5da0-6a3c-4b7a-a07d-690a10ed96d3', 'name': 'ctest-vn-59290387', 'tenant_id': '4ca4d78d1d264028a0ece5d713c3884c', 'project_id': '4ca4d78d1d264028a0ece5d713c3884c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['881163b8-54bf-46c6-ae7b-88c2caf348a8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08013294', 'ctest-vn-59290387'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-08013294', 'ctest-policy-allow-all-49591770']], 'subnet_ipam': [{'subnet_cidr': '109.228.251.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-25 15:21:22,523 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '476b9475-da8d-4a61-aa80-4d38392226c2', 'name': 'ctest-vn-86761803', 'tenant_id': '4ca4d78d1d264028a0ece5d713c3884c', 'project_id': '4ca4d78d1d264028a0ece5d713c3884c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b35f0a6b-92dd-4003-8289-530177bbd155'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08013294', 'ctest-vn-86761803'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-08013294', 'ctest-policy-allow-all-49591770']], 'subnet_ipam': [{'subnet_cidr': '144.138.17.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-25 15:21:22,700 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2024-10-25 15:21:23,051 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2024-10-25 15:21:23,091 - DEBUG - Requesting: http://10.0.0.31:8082/domain/5c9222a5-1004-4c8d-a5ba-6a8cd4423477
2024-10-25 15:21:23,108 - DEBUG - Requesting: http://10.0.0.31:8082/project/4ca4d78d-1d26-4028-a0ec-e5d713c3884c
2024-10-25 15:21:23,221 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/b0cc5da0-6a3c-4b7a-a07d-690a10ed96d3
2024-10-25 15:21:23,244 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/b0cc5da0-6a3c-4b7a-a07d-690a10ed96d3
2024-10-25 15:21:23,262 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/5fd97e9e-6afb-4d26-9723-9ace3c914b6f
2024-10-25 15:21:23,275 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/5fd97e9e-6afb-4d26-9723-9ace3c914b6f
2024-10-25 15:21:23,287 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/ab290a57-183c-4e64-9946-997470e9a1e1
2024-10-25 15:21:23,298 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-25 15:21:23,298 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/b0cc5da0-6a3c-4b7a-a07d-690a10ed96d3
2024-10-25 15:21:23,316 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/5fd97e9e-6afb-4d26-9723-9ace3c914b6f
2024-10-25 15:21:23,344 - INFO - Verified VN network id 8 for VN b0cc5da0-6a3c-4b7a-a07d-690a10ed96d3
2024-10-25 15:21:23,344 - INFO - Verifications in API Server for VN ctest-vn-59290387 passed
2024-10-25 15:21:23,344 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/b0cc5da0-6a3c-4b7a-a07d-690a10ed96d3
2024-10-25 15:21:23,362 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/5fd97e9e-6afb-4d26-9723-9ace3c914b6f
2024-10-25 15:21:23,374 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/5fd97e9e-6afb-4d26-9723-9ace3c914b6f
2024-10-25 15:21:23,385 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/ab290a57-183c-4e64-9946-997470e9a1e1
2024-10-25 15:21:23,401 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-08013294:ctest-vn-59290387', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-08013294', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12739660389482777466', 'uuid-lslong': '11564514910111897299'}, 'enable': 'true', 'created': '2024-10-25T15:21:20', 'last-modified': '2024-10-25T15:21:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.200645'}
2024-10-25 15:21:23,409 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-25 15:21:23,409 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-59290387 passed
2024-10-25 15:21:23,409 - DEBUG - ====Verifying policy data for ctest-vn-59290387 in API_Server ======
2024-10-25 15:21:23,409 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2024-10-25 15:21:23,417 - DEBUG - Requesting: http://10.0.0.31:8082/domain/5c9222a5-1004-4c8d-a5ba-6a8cd4423477
2024-10-25 15:21:23,432 - DEBUG - Requesting: http://10.0.0.31:8082/project/4ca4d78d-1d26-4028-a0ec-e5d713c3884c
2024-10-25 15:21:23,530 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/b0cc5da0-6a3c-4b7a-a07d-690a10ed96d3
2024-10-25 15:21:23,551 - DEBUG - ==>Verifying data for policy with id: 62e40f7f-67df-491a-a295-d276da33fed8, fqn: ['default-domain', 'ctest-TestBasicPolicy-08013294', 'ctest-policy-allow-all-49591770']
2024-10-25 15:21:23,551 - INFO - VN ctest-vn-59290387 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-25 15:21:23,551 - DEBUG - Verifying the vn in opserver
2024-10-25 15:21:23,551 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-08013294:ctest-vn-59290387 virtual network link through opserver 10.0.0.31
2024-10-25 15:21:23,551 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2024-10-25 15:21:23,892 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2024-10-25 15:21:23,970 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-08013294:ctest-vn-59290387', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-08013294:ctest-vn-59290387?flat'}
2024-10-25 15:21:23,970 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-08013294:ctest-vn-59290387 is found in opserver
2024-10-25 15:21:23,984 - DEBUG - Do not have enough data to verify VN in agent
2024-10-25 15:21:23,990 - DEBUG - VRF ids for VN ctest-vn-59290387: {}
2024-10-25 15:21:23,990 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2024-10-25 15:21:23,998 - DEBUG - Requesting: http://10.0.0.31:8082/domain/5c9222a5-1004-4c8d-a5ba-6a8cd4423477
2024-10-25 15:21:24,014 - DEBUG - Requesting: http://10.0.0.31:8082/project/4ca4d78d-1d26-4028-a0ec-e5d713c3884c
2024-10-25 15:21:24,106 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/476b9475-da8d-4a61-aa80-4d38392226c2
2024-10-25 15:21:24,127 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/476b9475-da8d-4a61-aa80-4d38392226c2
2024-10-25 15:21:24,145 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/bfd1fd00-f749-4566-a899-552bc2e5bea5
2024-10-25 15:21:24,156 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/bfd1fd00-f749-4566-a899-552bc2e5bea5
2024-10-25 15:21:24,167 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/77341e35-3e4a-4543-a941-ac07ad701abc
2024-10-25 15:21:24,178 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-25 15:21:24,178 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/476b9475-da8d-4a61-aa80-4d38392226c2
2024-10-25 15:21:24,195 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/bfd1fd00-f749-4566-a899-552bc2e5bea5
2024-10-25 15:21:24,221 - INFO - Verified VN network id 9 for VN 476b9475-da8d-4a61-aa80-4d38392226c2
2024-10-25 15:21:24,221 - INFO - Verifications in API Server for VN ctest-vn-86761803 passed
2024-10-25 15:21:24,221 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/476b9475-da8d-4a61-aa80-4d38392226c2
2024-10-25 15:21:24,240 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/bfd1fd00-f749-4566-a899-552bc2e5bea5
2024-10-25 15:21:24,250 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/bfd1fd00-f749-4566-a899-552bc2e5bea5
2024-10-25 15:21:24,261 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/77341e35-3e4a-4543-a941-ac07ad701abc
2024-10-25 15:21:24,278 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-08013294:ctest-vn-86761803', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-08013294', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5146370233099700833', 'uuid-lslong': '12285904687338759874'}, 'enable': 'true', 'created': '2024-10-25T15:21:21', 'last-modified': '2024-10-25T15:21:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.795600'}
2024-10-25 15:21:24,286 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-25 15:21:24,286 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-86761803 passed
2024-10-25 15:21:24,286 - DEBUG - ====Verifying policy data for ctest-vn-86761803 in API_Server ======
2024-10-25 15:21:24,286 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2024-10-25 15:21:24,294 - DEBUG - Requesting: http://10.0.0.31:8082/domain/5c9222a5-1004-4c8d-a5ba-6a8cd4423477
2024-10-25 15:21:24,309 - DEBUG - Requesting: http://10.0.0.31:8082/project/4ca4d78d-1d26-4028-a0ec-e5d713c3884c
2024-10-25 15:21:24,401 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/476b9475-da8d-4a61-aa80-4d38392226c2
2024-10-25 15:21:24,418 - DEBUG - ==>Verifying data for policy with id: 62e40f7f-67df-491a-a295-d276da33fed8, fqn: ['default-domain', 'ctest-TestBasicPolicy-08013294', 'ctest-policy-allow-all-49591770']
2024-10-25 15:21:24,418 - INFO - VN ctest-vn-86761803 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-25 15:21:24,418 - DEBUG - Verifying the vn in opserver
2024-10-25 15:21:24,418 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-08013294:ctest-vn-86761803 virtual network link through opserver 10.0.0.31
2024-10-25 15:21:24,418 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2024-10-25 15:21:24,432 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-08013294:ctest-vn-86761803', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-08013294:ctest-vn-86761803?flat'}
2024-10-25 15:21:24,432 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-08013294:ctest-vn-86761803 is found in opserver
2024-10-25 15:21:24,446 - DEBUG - Do not have enough data to verify VN in agent
2024-10-25 15:21:24,454 - DEBUG - VRF ids for VN ctest-vn-86761803: {}
2024-10-25 15:21:24,533 - DEBUG - Services list from nova: [