2025-01-14 17:02:30,399 - INFO - Domain Default found not creating
2025-01-14 17:02:30,564 - INFO - Project ctest-TestBasicPolicy-69182837 not found, creating it
2025-01-14 17:02:31,045 - INFO - Created Project:ctest-TestBasicPolicy-69182837, ID : 728282c6-5c03-4064-a154-f4b00d4d4ab0
2025-01-14 17:02:32,555 - INFO - ================================================================================
2025-01-14 17:02:32,555 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-14 17:02:32,555 - 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-14 17:02:32,813 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-01-14 17:02:32,813 - INFO - Initial checks done. Running the testcase now
2025-01-14 17:02:32,813 - INFO -
2025-01-14 17:02:33,384 - DEBUG - Response for create_network : {'network': {'id': '2a894086-c445-4938-ab67-6675259e4e49', 'name': 'ctest-vn-09783546', 'tenant_id': '728282c65c034064a154f4b00d4d4ab0', 'project_id': '728282c65c034064a154f4b00d4d4ab0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69182837', 'ctest-vn-09783546'], 'port_security_enabled': True, 'description': ''}}
2025-01-14 17:02:33,591 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cdebc416-bbfb-437c-84ca-5bf933d0ecbb', 'name': '', 'tenant_id': '728282c65c034064a154f4b00d4d4ab0', 'network_id': '2a894086-c445-4938-ab67-6675259e4e49', 'ip_version': 4, 'cidr': '40.204.154.0/26', 'allocation_pools': [{'start': '40.204.154.2', 'end': '40.204.154.62'}], 'gateway_ip': '40.204.154.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '40.204.154.2', 'tags': [], 'project_id': '728282c65c034064a154f4b00d4d4ab0'}}
2025-01-14 17:02:33,617 - INFO - Created VN ctest-vn-09783546
2025-01-14 17:02:33,673 - DEBUG - VN ctest-vn-09783546 UUID is 2a894086-c445-4938-ab67-6675259e4e49
2025-01-14 17:02:34,003 - DEBUG - Response for create_network : {'network': {'id': 'd52df1ce-ed9e-45cb-add6-7d94a356d394', 'name': 'ctest-vn-37907586', 'tenant_id': '728282c65c034064a154f4b00d4d4ab0', 'project_id': '728282c65c034064a154f4b00d4d4ab0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69182837', 'ctest-vn-37907586'], 'port_security_enabled': True, 'description': ''}}
2025-01-14 17:02:34,220 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ff82a9c0-5bad-4d1d-8957-9c28e2596dfb', 'name': '', 'tenant_id': '728282c65c034064a154f4b00d4d4ab0', 'network_id': 'd52df1ce-ed9e-45cb-add6-7d94a356d394', 'ip_version': 4, 'cidr': '30.31.67.192/26', 'allocation_pools': [{'start': '30.31.67.194', 'end': '30.31.67.254'}], 'gateway_ip': '30.31.67.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '30.31.67.194', 'tags': [], 'project_id': '728282c65c034064a154f4b00d4d4ab0'}}
2025-01-14 17:02:34,240 - INFO - Created VN ctest-vn-37907586
2025-01-14 17:02:34,293 - DEBUG - VN ctest-vn-37907586 UUID is d52df1ce-ed9e-45cb-add6-7d94a356d394
2025-01-14 17:02:34,412 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-69182837:ctest-vn-09783546, 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-69182837:ctest-vn-37907586, 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-14 17:02:34,723 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2a894086-c445-4938-ab67-6675259e4e49', 'name': 'ctest-vn-09783546', 'tenant_id': '728282c65c034064a154f4b00d4d4ab0', 'project_id': '728282c65c034064a154f4b00d4d4ab0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cdebc416-bbfb-437c-84ca-5bf933d0ecbb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69182837', 'ctest-vn-09783546'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-69182837', 'ctest-policy-allow-all-23623429']], 'subnet_ipam': [{'subnet_cidr': '40.204.154.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-14 17:02:34,961 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd52df1ce-ed9e-45cb-add6-7d94a356d394', 'name': 'ctest-vn-37907586', 'tenant_id': '728282c65c034064a154f4b00d4d4ab0', 'project_id': '728282c65c034064a154f4b00d4d4ab0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ff82a9c0-5bad-4d1d-8957-9c28e2596dfb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69182837', 'ctest-vn-37907586'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-69182837', 'ctest-policy-allow-all-23623429']], 'subnet_ipam': [{'subnet_cidr': '30.31.67.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-14 17:02:35,141 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-01-14 17:02:35,435 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-01-14 17:02:35,464 - DEBUG - Requesting: http://10.0.0.38:8082/domain/12ba4a17-4ae1-4aa0-9799-4e1784d62f7d
2025-01-14 17:02:35,478 - DEBUG - Requesting: http://10.0.0.38:8082/project/728282c6-5c03-4064-a154-f4b00d4d4ab0
2025-01-14 17:02:35,567 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2a894086-c445-4938-ab67-6675259e4e49
2025-01-14 17:02:35,578 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2a894086-c445-4938-ab67-6675259e4e49
2025-01-14 17:02:35,588 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a4a722c3-4b48-485b-a4b8-6fcf4eddecb6
2025-01-14 17:02:35,596 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a4a722c3-4b48-485b-a4b8-6fcf4eddecb6
2025-01-14 17:02:35,603 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/d3576874-0bfd-40f4-9840-17a03412af08
2025-01-14 17:02:35,610 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-14 17:02:35,610 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2a894086-c445-4938-ab67-6675259e4e49
2025-01-14 17:02:35,621 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a4a722c3-4b48-485b-a4b8-6fcf4eddecb6
2025-01-14 17:02:35,635 - INFO - Verified VN network id 8 for VN 2a894086-c445-4938-ab67-6675259e4e49
2025-01-14 17:02:35,635 - INFO - Verifications in API Server for VN ctest-vn-09783546 passed
2025-01-14 17:02:35,636 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2a894086-c445-4938-ab67-6675259e4e49
2025-01-14 17:02:35,646 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a4a722c3-4b48-485b-a4b8-6fcf4eddecb6
2025-01-14 17:02:35,655 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a4a722c3-4b48-485b-a4b8-6fcf4eddecb6
2025-01-14 17:02:35,664 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/d3576874-0bfd-40f4-9840-17a03412af08
2025-01-14 17:02:35,680 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-69182837:ctest-vn-09783546', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-69182837', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3065051968965003576', 'uuid-lslong': '12350953156415213129'}, 'enable': 'true', 'created': '2025-01-14T17:02:33', 'last-modified': '2025-01-14T17:02:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.989133'}
2025-01-14 17:02:35,686 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-14 17:02:35,686 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-09783546 passed
2025-01-14 17:02:35,686 - DEBUG - ====Verifying policy data for ctest-vn-09783546 in API_Server ======
2025-01-14 17:02:35,687 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-01-14 17:02:35,693 - DEBUG - Requesting: http://10.0.0.38:8082/domain/12ba4a17-4ae1-4aa0-9799-4e1784d62f7d
2025-01-14 17:02:35,704 - DEBUG - Requesting: http://10.0.0.38:8082/project/728282c6-5c03-4064-a154-f4b00d4d4ab0
2025-01-14 17:02:35,781 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2a894086-c445-4938-ab67-6675259e4e49
2025-01-14 17:02:35,793 - DEBUG - ==>Verifying data for policy with id: 2a91b940-18b3-4aef-95ee-9f41fb303411, fqn: ['default-domain', 'ctest-TestBasicPolicy-69182837', 'ctest-policy-allow-all-23623429']
2025-01-14 17:02:35,793 - INFO - VN ctest-vn-09783546 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-14 17:02:35,793 - DEBUG - Verifying the vn in opserver
2025-01-14 17:02:35,793 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-69182837:ctest-vn-09783546 virtual network link through opserver 10.0.0.38
2025-01-14 17:02:35,794 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-01-14 17:02:36,090 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-01-14 17:02:36,154 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-69182837:ctest-vn-09783546', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-69182837:ctest-vn-09783546?flat'}
2025-01-14 17:02:36,154 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-69182837:ctest-vn-09783546 is found in opserver
2025-01-14 17:02:36,166 - DEBUG - Do not have enough data to verify VN in agent
2025-01-14 17:02:36,173 - DEBUG - VRF ids for VN ctest-vn-09783546: {}
2025-01-14 17:02:36,173 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-01-14 17:02:36,181 - DEBUG - Requesting: http://10.0.0.38:8082/domain/12ba4a17-4ae1-4aa0-9799-4e1784d62f7d
2025-01-14 17:02:36,195 - DEBUG - Requesting: http://10.0.0.38:8082/project/728282c6-5c03-4064-a154-f4b00d4d4ab0
2025-01-14 17:02:36,273 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d52df1ce-ed9e-45cb-add6-7d94a356d394
2025-01-14 17:02:36,288 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d52df1ce-ed9e-45cb-add6-7d94a356d394
2025-01-14 17:02:36,298 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a58363ba-c2a0-464d-9fcb-abaaffff4ec7
2025-01-14 17:02:36,307 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a58363ba-c2a0-464d-9fcb-abaaffff4ec7
2025-01-14 17:02:36,317 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/63c658e2-c2b6-48cc-bce0-463746d4dd9f
2025-01-14 17:02:36,327 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-14 17:02:36,327 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d52df1ce-ed9e-45cb-add6-7d94a356d394
2025-01-14 17:02:36,339 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a58363ba-c2a0-464d-9fcb-abaaffff4ec7
2025-01-14 17:02:36,359 - INFO - Verified VN network id 9 for VN d52df1ce-ed9e-45cb-add6-7d94a356d394
2025-01-14 17:02:36,359 - INFO - Verifications in API Server for VN ctest-vn-37907586 passed
2025-01-14 17:02:36,359 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d52df1ce-ed9e-45cb-add6-7d94a356d394
2025-01-14 17:02:36,370 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a58363ba-c2a0-464d-9fcb-abaaffff4ec7
2025-01-14 17:02:36,379 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a58363ba-c2a0-464d-9fcb-abaaffff4ec7
2025-01-14 17:02:36,387 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/63c658e2-c2b6-48cc-bce0-463746d4dd9f
2025-01-14 17:02:36,402 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-69182837:ctest-vn-37907586', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-69182837', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15361199775082759627', 'uuid-lslong': '12526337490926621588'}, 'enable': 'true', 'created': '2025-01-14T17:02:33', 'last-modified': '2025-01-14T17:02:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.463894'}
2025-01-14 17:02:36,411 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-14 17:02:36,411 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-37907586 passed
2025-01-14 17:02:36,411 - DEBUG - ====Verifying policy data for ctest-vn-37907586 in API_Server ======
2025-01-14 17:02:36,411 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-01-14 17:02:36,418 - DEBUG - Requesting: http://10.0.0.38:8082/domain/12ba4a17-4ae1-4aa0-9799-4e1784d62f7d
2025-01-14 17:02:36,432 - DEBUG - Requesting: http://10.0.0.38:8082/project/728282c6-5c03-4064-a154-f4b00d4d4ab0
2025-01-14 17:02:36,508 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d52df1ce-ed9e-45cb-add6-7d94a356d394
2025-01-14 17:02:36,518 - DEBUG - ==>Verifying data for policy with id: 2a91b940-18b3-4aef-95ee-9f41fb303411, fqn: ['default-domain', 'ctest-TestBasicPolicy-69182837', 'ctest-policy-allow-all-23623429']
2025-01-14 17:02:36,518 - INFO - VN ctest-vn-37907586 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-14 17:02:36,519 - DEBUG - Verifying the vn in opserver
2025-01-14 17:02:36,519 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-69182837:ctest-vn-37907586 virtual network link through opserver 10.0.0.38
2025-01-14 17:02:36,519 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-01-14 17:02:36,531 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-69182837:ctest-vn-37907586', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-69182837:ctest-vn-37907586?flat'}
2025-01-14 17:02:36,531 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-69182837:ctest-vn-37907586 is found in opserver
2025-01-14 17:02:36,543 - DEBUG - Do not have enough data to verify VN in agent
2025-01-14 17:02:36,549 - DEBUG - VRF ids for VN ctest-vn-37907586: {}
2025-01-14 17:02:36,625 - DEBUG - Services list from nova: [