2024-09-02 02:46:07,856 - INFO - Domain Default found not creating
2024-09-02 02:46:08,189 - INFO - Project ctest-TestBasicPolicy-44034373 not found, creating it
2024-09-02 02:46:08,934 - INFO - Created Project:ctest-TestBasicPolicy-44034373, ID : 177fae18-09ac-449b-b69e-18849742038a
2024-09-02 02:46:11,481 - INFO - ================================================================================
2024-09-02 02:46:11,481 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-02 02:46:11,482 - 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-09-02 02:46:11,821 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.39': '0'}} with
2024-09-02 02:46:11,821 - INFO - Initial checks done. Running the testcase now
2024-09-02 02:46:11,822 - INFO -
2024-09-02 02:46:12,738 - DEBUG - Response for create_network : {'network': {'id': 'fbeac7ad-f6b0-48de-9a53-433f7bdaa47e', 'name': 'ctest-vn-03143127', 'tenant_id': '177fae1809ac449bb69e18849742038a', 'project_id': '177fae1809ac449bb69e18849742038a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44034373', 'ctest-vn-03143127'], 'port_security_enabled': True, 'description': ''}}
2024-09-02 02:46:13,077 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ba7efb75-45a7-4278-a750-d6ebd7fedf86', 'name': '', 'tenant_id': '177fae1809ac449bb69e18849742038a', 'network_id': 'fbeac7ad-f6b0-48de-9a53-433f7bdaa47e', 'ip_version': 4, 'cidr': '78.67.84.64/26', 'allocation_pools': [{'start': '78.67.84.66', 'end': '78.67.84.126'}], 'gateway_ip': '78.67.84.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '78.67.84.66', 'tags': [], 'project_id': '177fae1809ac449bb69e18849742038a'}}
2024-09-02 02:46:13,131 - INFO - Created VN ctest-vn-03143127
2024-09-02 02:46:13,198 - DEBUG - VN ctest-vn-03143127 UUID is fbeac7ad-f6b0-48de-9a53-433f7bdaa47e
2024-09-02 02:46:13,780 - DEBUG - Response for create_network : {'network': {'id': '12800076-e93e-4b2d-9d7b-832c2ac7ed3b', 'name': 'ctest-vn-66458258', 'tenant_id': '177fae1809ac449bb69e18849742038a', 'project_id': '177fae1809ac449bb69e18849742038a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44034373', 'ctest-vn-66458258'], 'port_security_enabled': True, 'description': ''}}
2024-09-02 02:46:13,955 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c516a15c-1f13-47d9-9002-6147e63b4971', 'name': '', 'tenant_id': '177fae1809ac449bb69e18849742038a', 'network_id': '12800076-e93e-4b2d-9d7b-832c2ac7ed3b', 'ip_version': 4, 'cidr': '166.15.133.64/26', 'allocation_pools': [{'start': '166.15.133.66', 'end': '166.15.133.126'}], 'gateway_ip': '166.15.133.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '166.15.133.66', 'tags': [], 'project_id': '177fae1809ac449bb69e18849742038a'}}
2024-09-02 02:46:13,990 - INFO - Created VN ctest-vn-66458258
2024-09-02 02:46:14,050 - DEBUG - VN ctest-vn-66458258 UUID is 12800076-e93e-4b2d-9d7b-832c2ac7ed3b
2024-09-02 02:46:14,266 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-44034373:ctest-vn-03143127, 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-44034373:ctest-vn-66458258, 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-09-02 02:46:14,780 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fbeac7ad-f6b0-48de-9a53-433f7bdaa47e', 'name': 'ctest-vn-03143127', 'tenant_id': '177fae1809ac449bb69e18849742038a', 'project_id': '177fae1809ac449bb69e18849742038a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ba7efb75-45a7-4278-a750-d6ebd7fedf86'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44034373', 'ctest-vn-03143127'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-44034373', 'ctest-policy-allow-all-61385147']], 'subnet_ipam': [{'subnet_cidr': '78.67.84.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-02 02:46:15,188 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '12800076-e93e-4b2d-9d7b-832c2ac7ed3b', 'name': 'ctest-vn-66458258', 'tenant_id': '177fae1809ac449bb69e18849742038a', 'project_id': '177fae1809ac449bb69e18849742038a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c516a15c-1f13-47d9-9002-6147e63b4971'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44034373', 'ctest-vn-66458258'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-44034373', 'ctest-policy-allow-all-61385147']], 'subnet_ipam': [{'subnet_cidr': '166.15.133.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-02 02:46:15,430 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2024-09-02 02:46:15,789 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2024-09-02 02:46:15,849 - DEBUG - Requesting: http://10.0.0.33:8082/domain/cbaaadc6-cd05-4f7f-a531-278643746e39
2024-09-02 02:46:15,900 - DEBUG - Requesting: http://10.0.0.33:8082/project/177fae18-09ac-449b-b69e-18849742038a
2024-09-02 02:46:15,960 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/fbeac7ad-f6b0-48de-9a53-433f7bdaa47e
2024-09-02 02:46:15,982 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/fbeac7ad-f6b0-48de-9a53-433f7bdaa47e
2024-09-02 02:46:16,001 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1fba7cde-395c-44a1-b8c9-35b550576884
2024-09-02 02:46:16,016 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1fba7cde-395c-44a1-b8c9-35b550576884
2024-09-02 02:46:16,037 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/f235881d-a979-4171-8c00-09a15f8c7600
2024-09-02 02:46:16,056 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-02 02:46:16,056 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/fbeac7ad-f6b0-48de-9a53-433f7bdaa47e
2024-09-02 02:46:16,073 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1fba7cde-395c-44a1-b8c9-35b550576884
2024-09-02 02:46:16,100 - INFO - Verified VN network id 8 for VN fbeac7ad-f6b0-48de-9a53-433f7bdaa47e
2024-09-02 02:46:16,100 - INFO - Verifications in API Server for VN ctest-vn-03143127 passed
2024-09-02 02:46:16,101 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/fbeac7ad-f6b0-48de-9a53-433f7bdaa47e
2024-09-02 02:46:16,116 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1fba7cde-395c-44a1-b8c9-35b550576884
2024-09-02 02:46:16,132 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1fba7cde-395c-44a1-b8c9-35b550576884
2024-09-02 02:46:16,151 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/f235881d-a979-4171-8c00-09a15f8c7600
2024-09-02 02:46:16,179 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-44034373:ctest-vn-03143127', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-44034373', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18152540798052223198', 'uuid-lslong': '11120305844847813758'}, 'enable': 'true', 'created': '2024-09-02T02:46:12', 'last-modified': '2024-09-02T02:46:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.454468'}
2024-09-02 02:46:16,203 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-02 02:46:16,203 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-03143127 passed
2024-09-02 02:46:16,203 - DEBUG - ====Verifying policy data for ctest-vn-03143127 in API_Server ======
2024-09-02 02:46:16,204 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2024-09-02 02:46:16,215 - DEBUG - Requesting: http://10.0.0.33:8082/domain/cbaaadc6-cd05-4f7f-a531-278643746e39
2024-09-02 02:46:16,239 - DEBUG - Requesting: http://10.0.0.33:8082/project/177fae18-09ac-449b-b69e-18849742038a
2024-09-02 02:46:16,363 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/fbeac7ad-f6b0-48de-9a53-433f7bdaa47e
2024-09-02 02:46:16,395 - DEBUG - ==>Verifying data for policy with id: b6d94245-e6d3-430e-a9ad-77573adc5e54, fqn: ['default-domain', 'ctest-TestBasicPolicy-44034373', 'ctest-policy-allow-all-61385147']
2024-09-02 02:46:16,396 - INFO - VN ctest-vn-03143127 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-02 02:46:16,396 - DEBUG - Verifying the vn in opserver
2024-09-02 02:46:16,398 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-44034373:ctest-vn-03143127 virtual network link through opserver 10.0.0.33
2024-09-02 02:46:16,398 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2024-09-02 02:46:16,744 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2024-09-02 02:46:16,943 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-44034373:ctest-vn-03143127', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-44034373:ctest-vn-03143127?flat'}
2024-09-02 02:46:16,943 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-44034373:ctest-vn-03143127 is found in opserver
2024-09-02 02:46:16,980 - DEBUG - Do not have enough data to verify VN in agent
2024-09-02 02:46:17,000 - DEBUG - VRF ids for VN ctest-vn-03143127: {}
2024-09-02 02:46:17,000 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2024-09-02 02:46:17,015 - DEBUG - Requesting: http://10.0.0.33:8082/domain/cbaaadc6-cd05-4f7f-a531-278643746e39
2024-09-02 02:46:17,038 - DEBUG - Requesting: http://10.0.0.33:8082/project/177fae18-09ac-449b-b69e-18849742038a
2024-09-02 02:46:17,148 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/12800076-e93e-4b2d-9d7b-832c2ac7ed3b
2024-09-02 02:46:17,164 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/12800076-e93e-4b2d-9d7b-832c2ac7ed3b
2024-09-02 02:46:17,178 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7be2bb6d-55be-4bc9-b341-bc8206f45b4c
2024-09-02 02:46:17,188 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7be2bb6d-55be-4bc9-b341-bc8206f45b4c
2024-09-02 02:46:17,197 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/7954b633-23d2-426a-ae02-8fb0902cae33
2024-09-02 02:46:17,207 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-02 02:46:17,207 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/12800076-e93e-4b2d-9d7b-832c2ac7ed3b
2024-09-02 02:46:17,221 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7be2bb6d-55be-4bc9-b341-bc8206f45b4c
2024-09-02 02:46:17,238 - INFO - Verified VN network id 9 for VN 12800076-e93e-4b2d-9d7b-832c2ac7ed3b
2024-09-02 02:46:17,238 - INFO - Verifications in API Server for VN ctest-vn-66458258 passed
2024-09-02 02:46:17,238 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/12800076-e93e-4b2d-9d7b-832c2ac7ed3b
2024-09-02 02:46:17,251 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7be2bb6d-55be-4bc9-b341-bc8206f45b4c
2024-09-02 02:46:17,264 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7be2bb6d-55be-4bc9-b341-bc8206f45b4c
2024-09-02 02:46:17,279 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/7954b633-23d2-426a-ae02-8fb0902cae33
2024-09-02 02:46:17,309 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-44034373:ctest-vn-66458258', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-44034373', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1333066000420981549', 'uuid-lslong': '11347807911809641787'}, 'enable': 'true', 'created': '2024-09-02T02:46:13', 'last-modified': '2024-09-02T02:46:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.183451'}
2024-09-02 02:46:17,323 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-02 02:46:17,323 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-66458258 passed
2024-09-02 02:46:17,323 - DEBUG - ====Verifying policy data for ctest-vn-66458258 in API_Server ======
2024-09-02 02:46:17,323 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2024-09-02 02:46:17,334 - DEBUG - Requesting: http://10.0.0.33:8082/domain/cbaaadc6-cd05-4f7f-a531-278643746e39
2024-09-02 02:46:17,354 - DEBUG - Requesting: http://10.0.0.33:8082/project/177fae18-09ac-449b-b69e-18849742038a
2024-09-02 02:46:17,472 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/12800076-e93e-4b2d-9d7b-832c2ac7ed3b
2024-09-02 02:46:17,496 - DEBUG - ==>Verifying data for policy with id: b6d94245-e6d3-430e-a9ad-77573adc5e54, fqn: ['default-domain', 'ctest-TestBasicPolicy-44034373', 'ctest-policy-allow-all-61385147']
2024-09-02 02:46:17,496 - INFO - VN ctest-vn-66458258 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-02 02:46:17,496 - DEBUG - Verifying the vn in opserver
2024-09-02 02:46:17,497 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-44034373:ctest-vn-66458258 virtual network link through opserver 10.0.0.33
2024-09-02 02:46:17,497 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2024-09-02 02:46:17,527 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-44034373:ctest-vn-66458258', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-44034373:ctest-vn-66458258?flat'}
2024-09-02 02:46:17,528 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-44034373:ctest-vn-66458258 is found in opserver
2024-09-02 02:46:17,555 - DEBUG - Do not have enough data to verify VN in agent
2024-09-02 02:46:17,573 - DEBUG - VRF ids for VN ctest-vn-66458258: {}
2024-09-02 02:46:17,703 - DEBUG - Services list from nova: [