2025-01-06 09:18:55,964 - INFO - Domain Default found not creating
2025-01-06 09:18:56,109 - INFO - Project ctest-TestBasicPolicy-45761320 not found, creating it
2025-01-06 09:18:56,576 - INFO - Created Project:ctest-TestBasicPolicy-45761320, ID : f42716c4-9363-446d-9829-a40594cd42fb
2025-01-06 09:18:57,976 - INFO - ================================================================================
2025-01-06 09:18:57,976 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-06 09:18:57,976 - 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-06 09:18:58,238 - DEBUG - Nothing to compare xmpp stats {'10.0.0.34': {'10.20.0.5': '0'}} with
2025-01-06 09:18:58,238 - INFO - Initial checks done. Running the testcase now
2025-01-06 09:18:58,238 - INFO -
2025-01-06 09:18:58,765 - DEBUG - Response for create_network : {'network': {'id': '8c15222b-5966-491a-afa5-594c2a725f47', 'name': 'ctest-vn-73725299', 'tenant_id': 'f42716c49363446d9829a40594cd42fb', 'project_id': 'f42716c49363446d9829a40594cd42fb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45761320', 'ctest-vn-73725299'], 'port_security_enabled': True, 'description': ''}}
2025-01-06 09:18:58,953 - DEBUG - Response for create_subnet : {'subnet': {'id': '22ec9ca9-cba4-4211-942e-d14a75c8a964', 'name': '', 'tenant_id': 'f42716c49363446d9829a40594cd42fb', 'network_id': '8c15222b-5966-491a-afa5-594c2a725f47', 'ip_version': 4, 'cidr': '110.246.154.64/26', 'allocation_pools': [{'start': '110.246.154.66', 'end': '110.246.154.126'}], 'gateway_ip': '110.246.154.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '110.246.154.66', 'tags': [], 'project_id': 'f42716c49363446d9829a40594cd42fb'}}
2025-01-06 09:18:58,968 - INFO - Created VN ctest-vn-73725299
2025-01-06 09:18:59,019 - DEBUG - VN ctest-vn-73725299 UUID is 8c15222b-5966-491a-afa5-594c2a725f47
2025-01-06 09:18:59,310 - DEBUG - Response for create_network : {'network': {'id': '1ee3faed-b456-416f-902a-024112832769', 'name': 'ctest-vn-85524196', 'tenant_id': 'f42716c49363446d9829a40594cd42fb', 'project_id': 'f42716c49363446d9829a40594cd42fb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45761320', 'ctest-vn-85524196'], 'port_security_enabled': True, 'description': ''}}
2025-01-06 09:18:59,498 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dec7d828-8125-4ba4-a4a0-b0385641ded1', 'name': '', 'tenant_id': 'f42716c49363446d9829a40594cd42fb', 'network_id': '1ee3faed-b456-416f-902a-024112832769', 'ip_version': 4, 'cidr': '170.6.25.0/26', 'allocation_pools': [{'start': '170.6.25.2', 'end': '170.6.25.62'}], 'gateway_ip': '170.6.25.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '170.6.25.2', 'tags': [], 'project_id': 'f42716c49363446d9829a40594cd42fb'}}
2025-01-06 09:18:59,517 - INFO - Created VN ctest-vn-85524196
2025-01-06 09:18:59,571 - DEBUG - VN ctest-vn-85524196 UUID is 1ee3faed-b456-416f-902a-024112832769
2025-01-06 09:18:59,688 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-45761320:ctest-vn-73725299, 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-45761320:ctest-vn-85524196, 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-06 09:18:59,985 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8c15222b-5966-491a-afa5-594c2a725f47', 'name': 'ctest-vn-73725299', 'tenant_id': 'f42716c49363446d9829a40594cd42fb', 'project_id': 'f42716c49363446d9829a40594cd42fb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['22ec9ca9-cba4-4211-942e-d14a75c8a964'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45761320', 'ctest-vn-73725299'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-45761320', 'ctest-policy-allow-all-27496027']], 'subnet_ipam': [{'subnet_cidr': '110.246.154.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-06 09:19:00,219 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1ee3faed-b456-416f-902a-024112832769', 'name': 'ctest-vn-85524196', 'tenant_id': 'f42716c49363446d9829a40594cd42fb', 'project_id': 'f42716c49363446d9829a40594cd42fb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['dec7d828-8125-4ba4-a4a0-b0385641ded1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45761320', 'ctest-vn-85524196'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-45761320', 'ctest-policy-allow-all-27496027']], 'subnet_ipam': [{'subnet_cidr': '170.6.25.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-06 09:19:00,367 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2025-01-06 09:19:00,662 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2025-01-06 09:19:00,691 - DEBUG - Requesting: http://10.0.0.34:8082/domain/6438217f-4b78-4168-a4ca-5d66c997b249
2025-01-06 09:19:00,705 - DEBUG - Requesting: http://10.0.0.34:8082/project/f42716c4-9363-446d-9829-a40594cd42fb
2025-01-06 09:19:00,781 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/8c15222b-5966-491a-afa5-594c2a725f47
2025-01-06 09:19:00,792 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/8c15222b-5966-491a-afa5-594c2a725f47
2025-01-06 09:19:00,801 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/ac32e865-d3e4-43db-be39-b351217d5447
2025-01-06 09:19:00,807 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/ac32e865-d3e4-43db-be39-b351217d5447
2025-01-06 09:19:00,813 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/7ab80c62-a573-4100-8e65-5f6d997b8da6
2025-01-06 09:19:00,819 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-06 09:19:00,819 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/8c15222b-5966-491a-afa5-594c2a725f47
2025-01-06 09:19:00,828 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/ac32e865-d3e4-43db-be39-b351217d5447
2025-01-06 09:19:00,840 - INFO - Verified VN network id 8 for VN 8c15222b-5966-491a-afa5-594c2a725f47
2025-01-06 09:19:00,840 - INFO - Verifications in API Server for VN ctest-vn-73725299 passed
2025-01-06 09:19:00,840 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/8c15222b-5966-491a-afa5-594c2a725f47
2025-01-06 09:19:00,849 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/ac32e865-d3e4-43db-be39-b351217d5447
2025-01-06 09:19:00,856 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/ac32e865-d3e4-43db-be39-b351217d5447
2025-01-06 09:19:00,862 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/7ab80c62-a573-4100-8e65-5f6d997b8da6
2025-01-06 09:19:00,873 - DEBUG - Control-node 10.0.0.34 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-45761320:ctest-vn-73725299', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-45761320', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10094011709399648538', 'uuid-lslong': '12656620511459172167'}, 'enable': 'true', 'created': '2025-01-06T09:18:58', 'last-modified': '2025-01-06T09:18:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.911874'}
2025-01-06 09:19:00,879 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-06 09:19:00,879 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-73725299 passed
2025-01-06 09:19:00,880 - DEBUG - ====Verifying policy data for ctest-vn-73725299 in API_Server ======
2025-01-06 09:19:00,880 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2025-01-06 09:19:00,886 - DEBUG - Requesting: http://10.0.0.34:8082/domain/6438217f-4b78-4168-a4ca-5d66c997b249
2025-01-06 09:19:00,899 - DEBUG - Requesting: http://10.0.0.34:8082/project/f42716c4-9363-446d-9829-a40594cd42fb
2025-01-06 09:19:00,975 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/8c15222b-5966-491a-afa5-594c2a725f47
2025-01-06 09:19:00,986 - DEBUG - ==>Verifying data for policy with id: 7091dda6-4181-4074-8d28-52a7fc2490ae, fqn: ['default-domain', 'ctest-TestBasicPolicy-45761320', 'ctest-policy-allow-all-27496027']
2025-01-06 09:19:00,986 - INFO - VN ctest-vn-73725299 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-06 09:19:00,986 - DEBUG - Verifying the vn in opserver
2025-01-06 09:19:00,986 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-45761320:ctest-vn-73725299 virtual network link through opserver 10.0.0.34
2025-01-06 09:19:00,986 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks
2025-01-06 09:19:01,278 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks
2025-01-06 09:19:01,333 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-45761320:ctest-vn-73725299', 'href': 'http://10.0.0.34:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-45761320:ctest-vn-73725299?flat'}
2025-01-06 09:19:01,333 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-45761320:ctest-vn-73725299 is found in opserver
2025-01-06 09:19:01,345 - DEBUG - Do not have enough data to verify VN in agent
2025-01-06 09:19:01,351 - DEBUG - VRF ids for VN ctest-vn-73725299: {}
2025-01-06 09:19:01,351 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2025-01-06 09:19:01,358 - DEBUG - Requesting: http://10.0.0.34:8082/domain/6438217f-4b78-4168-a4ca-5d66c997b249
2025-01-06 09:19:01,372 - DEBUG - Requesting: http://10.0.0.34:8082/project/f42716c4-9363-446d-9829-a40594cd42fb
2025-01-06 09:19:01,453 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/1ee3faed-b456-416f-902a-024112832769
2025-01-06 09:19:01,468 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/1ee3faed-b456-416f-902a-024112832769
2025-01-06 09:19:01,479 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/47bf1870-00bf-4546-9c6a-417354eb0686
2025-01-06 09:19:01,487 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/47bf1870-00bf-4546-9c6a-417354eb0686
2025-01-06 09:19:01,494 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/96ba0652-1ee2-41c8-aae5-73c57054fe81
2025-01-06 09:19:01,500 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-06 09:19:01,501 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/1ee3faed-b456-416f-902a-024112832769
2025-01-06 09:19:01,509 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/47bf1870-00bf-4546-9c6a-417354eb0686
2025-01-06 09:19:01,522 - INFO - Verified VN network id 9 for VN 1ee3faed-b456-416f-902a-024112832769
2025-01-06 09:19:01,522 - INFO - Verifications in API Server for VN ctest-vn-85524196 passed
2025-01-06 09:19:01,522 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/1ee3faed-b456-416f-902a-024112832769
2025-01-06 09:19:01,534 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/47bf1870-00bf-4546-9c6a-417354eb0686
2025-01-06 09:19:01,542 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/47bf1870-00bf-4546-9c6a-417354eb0686
2025-01-06 09:19:01,549 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/96ba0652-1ee2-41c8-aae5-73c57054fe81
2025-01-06 09:19:01,563 - DEBUG - Control-node 10.0.0.34 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-45761320:ctest-vn-85524196', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-45761320', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2225898539690901871', 'uuid-lslong': '10388117968990185321'}, 'enable': 'true', 'created': '2025-01-06T09:18:59', 'last-modified': '2025-01-06T09:19:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.364544'}
2025-01-06 09:19:01,571 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-06 09:19:01,571 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-85524196 passed
2025-01-06 09:19:01,572 - DEBUG - ====Verifying policy data for ctest-vn-85524196 in API_Server ======
2025-01-06 09:19:01,572 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2025-01-06 09:19:01,578 - DEBUG - Requesting: http://10.0.0.34:8082/domain/6438217f-4b78-4168-a4ca-5d66c997b249
2025-01-06 09:19:01,592 - DEBUG - Requesting: http://10.0.0.34:8082/project/f42716c4-9363-446d-9829-a40594cd42fb
2025-01-06 09:19:01,667 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/1ee3faed-b456-416f-902a-024112832769
2025-01-06 09:19:01,679 - DEBUG - ==>Verifying data for policy with id: 7091dda6-4181-4074-8d28-52a7fc2490ae, fqn: ['default-domain', 'ctest-TestBasicPolicy-45761320', 'ctest-policy-allow-all-27496027']
2025-01-06 09:19:01,679 - INFO - VN ctest-vn-85524196 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-06 09:19:01,679 - DEBUG - Verifying the vn in opserver
2025-01-06 09:19:01,679 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-45761320:ctest-vn-85524196 virtual network link through opserver 10.0.0.34
2025-01-06 09:19:01,679 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks
2025-01-06 09:19:01,691 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-45761320:ctest-vn-85524196', 'href': 'http://10.0.0.34:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-45761320:ctest-vn-85524196?flat'}
2025-01-06 09:19:01,691 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-45761320:ctest-vn-85524196 is found in opserver
2025-01-06 09:19:01,702 - DEBUG - Do not have enough data to verify VN in agent
2025-01-06 09:19:01,706 - DEBUG - VRF ids for VN ctest-vn-85524196: {}
2025-01-06 09:19:01,759 - DEBUG - Services list from nova: [