2025-01-15 09:06:32,448 - INFO - Domain Default found not creating
2025-01-15 09:06:32,617 - INFO - Project ctest-TestBasicPolicy-44819534 not found, creating it
2025-01-15 09:06:33,173 - INFO - Created Project:ctest-TestBasicPolicy-44819534, ID : fe628882-5561-4a1d-9277-5a91e0ed617d
2025-01-15 09:06:34,726 - INFO - ================================================================================
2025-01-15 09:06:34,726 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-15 09:06:34,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
2025-01-15 09:06:34,988 - DEBUG - Nothing to compare xmpp stats {'10.0.0.17': {'10.20.0.6': '0'}} with
2025-01-15 09:06:34,988 - INFO - Initial checks done. Running the testcase now
2025-01-15 09:06:34,989 - INFO -
2025-01-15 09:06:35,609 - DEBUG - Response for create_network : {'network': {'id': 'dc27bb43-bdda-4638-bb70-9fe12704da8c', 'name': 'ctest-vn-44198988', 'tenant_id': 'fe62888255614a1d92775a91e0ed617d', 'project_id': 'fe62888255614a1d92775a91e0ed617d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44819534', 'ctest-vn-44198988'], 'port_security_enabled': True, 'description': ''}}
2025-01-15 09:06:35,848 - DEBUG - Response for create_subnet : {'subnet': {'id': '7453c2e6-bc4c-4a31-9f51-7c53ef740459', 'name': '', 'tenant_id': 'fe62888255614a1d92775a91e0ed617d', 'network_id': 'dc27bb43-bdda-4638-bb70-9fe12704da8c', 'ip_version': 4, 'cidr': '174.174.182.192/26', 'allocation_pools': [{'start': '174.174.182.194', 'end': '174.174.182.254'}], 'gateway_ip': '174.174.182.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '174.174.182.194', 'tags': [], 'project_id': 'fe62888255614a1d92775a91e0ed617d'}}
2025-01-15 09:06:35,873 - INFO - Created VN ctest-vn-44198988
2025-01-15 09:06:35,931 - DEBUG - VN ctest-vn-44198988 UUID is dc27bb43-bdda-4638-bb70-9fe12704da8c
2025-01-15 09:06:36,270 - DEBUG - Response for create_network : {'network': {'id': '41036f01-54da-49d2-b727-8a1112448b87', 'name': 'ctest-vn-57353850', 'tenant_id': 'fe62888255614a1d92775a91e0ed617d', 'project_id': 'fe62888255614a1d92775a91e0ed617d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44819534', 'ctest-vn-57353850'], 'port_security_enabled': True, 'description': ''}}
2025-01-15 09:06:36,447 - DEBUG - Response for create_subnet : {'subnet': {'id': '15464ce8-cf58-4094-8bc3-68824e08ec8d', 'name': '', 'tenant_id': 'fe62888255614a1d92775a91e0ed617d', 'network_id': '41036f01-54da-49d2-b727-8a1112448b87', 'ip_version': 4, 'cidr': '184.96.111.128/26', 'allocation_pools': [{'start': '184.96.111.130', 'end': '184.96.111.190'}], 'gateway_ip': '184.96.111.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '184.96.111.130', 'tags': [], 'project_id': 'fe62888255614a1d92775a91e0ed617d'}}
2025-01-15 09:06:36,469 - INFO - Created VN ctest-vn-57353850
2025-01-15 09:06:36,523 - DEBUG - VN ctest-vn-57353850 UUID is 41036f01-54da-49d2-b727-8a1112448b87
2025-01-15 09:06:36,647 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-44819534:ctest-vn-44198988, 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-44819534:ctest-vn-57353850, 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]
2025-01-15 09:06:36,955 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dc27bb43-bdda-4638-bb70-9fe12704da8c', 'name': 'ctest-vn-44198988', 'tenant_id': 'fe62888255614a1d92775a91e0ed617d', 'project_id': 'fe62888255614a1d92775a91e0ed617d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7453c2e6-bc4c-4a31-9f51-7c53ef740459'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44819534', 'ctest-vn-44198988'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-44819534', 'ctest-policy-allow-all-84478671']], 'subnet_ipam': [{'subnet_cidr': '174.174.182.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-15 09:06:37,201 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '41036f01-54da-49d2-b727-8a1112448b87', 'name': 'ctest-vn-57353850', 'tenant_id': 'fe62888255614a1d92775a91e0ed617d', 'project_id': 'fe62888255614a1d92775a91e0ed617d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['15464ce8-cf58-4094-8bc3-68824e08ec8d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44819534', 'ctest-vn-57353850'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-44819534', 'ctest-policy-allow-all-84478671']], 'subnet_ipam': [{'subnet_cidr': '184.96.111.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-15 09:06:37,347 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-01-15 09:06:37,653 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-01-15 09:06:37,685 - DEBUG - Requesting: http://10.0.0.17:8082/domain/4a5de63c-79fe-4e8c-b066-9ee234f62f1e
2025-01-15 09:06:37,703 - DEBUG - Requesting: http://10.0.0.17:8082/project/fe628882-5561-4a1d-9277-5a91e0ed617d
2025-01-15 09:06:37,776 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/dc27bb43-bdda-4638-bb70-9fe12704da8c
2025-01-15 09:06:37,788 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/dc27bb43-bdda-4638-bb70-9fe12704da8c
2025-01-15 09:06:37,799 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/5325346f-9db3-4722-8f3c-34a6ab19940f
2025-01-15 09:06:37,808 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/5325346f-9db3-4722-8f3c-34a6ab19940f
2025-01-15 09:06:37,815 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/9db52e1d-3c41-4e95-aaa0-123a50eb9102
2025-01-15 09:06:37,824 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-15 09:06:37,824 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/dc27bb43-bdda-4638-bb70-9fe12704da8c
2025-01-15 09:06:37,837 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/5325346f-9db3-4722-8f3c-34a6ab19940f
2025-01-15 09:06:37,853 - INFO - Verified VN network id 8 for VN dc27bb43-bdda-4638-bb70-9fe12704da8c
2025-01-15 09:06:37,853 - INFO - Verifications in API Server for VN ctest-vn-44198988 passed
2025-01-15 09:06:37,853 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/dc27bb43-bdda-4638-bb70-9fe12704da8c
2025-01-15 09:06:37,865 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/5325346f-9db3-4722-8f3c-34a6ab19940f
2025-01-15 09:06:37,873 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/5325346f-9db3-4722-8f3c-34a6ab19940f
2025-01-15 09:06:37,879 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/9db52e1d-3c41-4e95-aaa0-123a50eb9102
2025-01-15 09:06:37,892 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-44819534:ctest-vn-44198988', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-44819534', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15863854112058263096', 'uuid-lslong': '13506471071855205004'}, 'enable': 'true', 'created': '2025-01-15T09:06:35', 'last-modified': '2025-01-15T09:06:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.966330'}
2025-01-15 09:06:37,900 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-15 09:06:37,900 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-44198988 passed
2025-01-15 09:06:37,900 - DEBUG - ====Verifying policy data for ctest-vn-44198988 in API_Server ======
2025-01-15 09:06:37,900 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-01-15 09:06:37,907 - DEBUG - Requesting: http://10.0.0.17:8082/domain/4a5de63c-79fe-4e8c-b066-9ee234f62f1e
2025-01-15 09:06:37,919 - DEBUG - Requesting: http://10.0.0.17:8082/project/fe628882-5561-4a1d-9277-5a91e0ed617d
2025-01-15 09:06:37,989 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/dc27bb43-bdda-4638-bb70-9fe12704da8c
2025-01-15 09:06:38,001 - DEBUG - ==>Verifying data for policy with id: 601e421f-65d1-44c7-a2de-68a5b58de48b, fqn: ['default-domain', 'ctest-TestBasicPolicy-44819534', 'ctest-policy-allow-all-84478671']
2025-01-15 09:06:38,002 - INFO - VN ctest-vn-44198988 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-15 09:06:38,002 - DEBUG - Verifying the vn in opserver
2025-01-15 09:06:38,002 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-44819534:ctest-vn-44198988 virtual network link through opserver 10.0.0.17
2025-01-15 09:06:38,002 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2025-01-15 09:06:38,293 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2025-01-15 09:06:38,344 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-44819534:ctest-vn-44198988', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-44819534:ctest-vn-44198988?flat'}
2025-01-15 09:06:38,345 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-44819534:ctest-vn-44198988 is found in opserver
2025-01-15 09:06:38,355 - DEBUG - Do not have enough data to verify VN in agent
2025-01-15 09:06:38,360 - DEBUG - VRF ids for VN ctest-vn-44198988: {}
2025-01-15 09:06:38,360 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-01-15 09:06:38,366 - DEBUG - Requesting: http://10.0.0.17:8082/domain/4a5de63c-79fe-4e8c-b066-9ee234f62f1e
2025-01-15 09:06:38,378 - DEBUG - Requesting: http://10.0.0.17:8082/project/fe628882-5561-4a1d-9277-5a91e0ed617d
2025-01-15 09:06:38,455 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/41036f01-54da-49d2-b727-8a1112448b87
2025-01-15 09:06:38,472 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/41036f01-54da-49d2-b727-8a1112448b87
2025-01-15 09:06:38,484 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/e9379e55-bbe4-4bee-bdb5-089bae2ad730
2025-01-15 09:06:38,492 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/e9379e55-bbe4-4bee-bdb5-089bae2ad730
2025-01-15 09:06:38,500 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/3be7f9a1-8199-4c95-83af-78bf9f8ec02e
2025-01-15 09:06:38,507 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-15 09:06:38,507 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/41036f01-54da-49d2-b727-8a1112448b87
2025-01-15 09:06:38,517 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/e9379e55-bbe4-4bee-bdb5-089bae2ad730
2025-01-15 09:06:38,536 - INFO - Verified VN network id 9 for VN 41036f01-54da-49d2-b727-8a1112448b87
2025-01-15 09:06:38,536 - INFO - Verifications in API Server for VN ctest-vn-57353850 passed
2025-01-15 09:06:38,536 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/41036f01-54da-49d2-b727-8a1112448b87
2025-01-15 09:06:38,546 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/e9379e55-bbe4-4bee-bdb5-089bae2ad730
2025-01-15 09:06:38,553 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/e9379e55-bbe4-4bee-bdb5-089bae2ad730
2025-01-15 09:06:38,561 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/3be7f9a1-8199-4c95-83af-78bf9f8ec02e
2025-01-15 09:06:38,576 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-44819534:ctest-vn-57353850', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-44819534', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4684710088904690130', 'uuid-lslong': '13197669038958087047'}, 'enable': 'true', 'created': '2025-01-15T09:06:36', 'last-modified': '2025-01-15T09:06:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.400762'}
2025-01-15 09:06:38,583 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-15 09:06:38,584 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-57353850 passed
2025-01-15 09:06:38,584 - DEBUG - ====Verifying policy data for ctest-vn-57353850 in API_Server ======
2025-01-15 09:06:38,584 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-01-15 09:06:38,591 - DEBUG - Requesting: http://10.0.0.17:8082/domain/4a5de63c-79fe-4e8c-b066-9ee234f62f1e
2025-01-15 09:06:38,604 - DEBUG - Requesting: http://10.0.0.17:8082/project/fe628882-5561-4a1d-9277-5a91e0ed617d
2025-01-15 09:06:38,683 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/41036f01-54da-49d2-b727-8a1112448b87
2025-01-15 09:06:38,694 - DEBUG - ==>Verifying data for policy with id: 601e421f-65d1-44c7-a2de-68a5b58de48b, fqn: ['default-domain', 'ctest-TestBasicPolicy-44819534', 'ctest-policy-allow-all-84478671']
2025-01-15 09:06:38,694 - INFO - VN ctest-vn-57353850 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-15 09:06:38,694 - DEBUG - Verifying the vn in opserver
2025-01-15 09:06:38,694 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-44819534:ctest-vn-57353850 virtual network link through opserver 10.0.0.17
2025-01-15 09:06:38,694 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2025-01-15 09:06:38,706 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-44819534:ctest-vn-57353850', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-44819534:ctest-vn-57353850?flat'}
2025-01-15 09:06:38,706 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-44819534:ctest-vn-57353850 is found in opserver
2025-01-15 09:06:38,721 - DEBUG - Do not have enough data to verify VN in agent
2025-01-15 09:06:38,730 - DEBUG - VRF ids for VN ctest-vn-57353850: {}
2025-01-15 09:06:38,790 - DEBUG - Services list from nova: [