2025-01-10 04:32:06,141 - INFO - Domain Default found not creating
2025-01-10 04:32:06,289 - INFO - Project ctest-TestBasicPolicy-15458475 not found, creating it
2025-01-10 04:32:06,742 - INFO - Created Project:ctest-TestBasicPolicy-15458475, ID : 4da0b141-d9a5-4fa1-b8bb-8bab3581d893
2025-01-10 04:32:08,181 - INFO - ================================================================================
2025-01-10 04:32:08,181 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-10 04:32:08,181 - 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-10 04:32:08,436 - DEBUG - Nothing to compare xmpp stats {'10.0.0.17': {'10.20.0.14': '0'}} with
2025-01-10 04:32:08,436 - INFO - Initial checks done. Running the testcase now
2025-01-10 04:32:08,436 - INFO -
2025-01-10 04:32:08,973 - DEBUG - Response for create_network : {'network': {'id': '62259050-bd7e-4d6f-92ca-d49b0fca7fb0', 'name': 'ctest-vn-11272789', 'tenant_id': '4da0b141d9a54fa1b8bb8bab3581d893', 'project_id': '4da0b141d9a54fa1b8bb8bab3581d893', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15458475', 'ctest-vn-11272789'], 'port_security_enabled': True, 'description': ''}}
2025-01-10 04:32:09,192 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cb6fc5fe-cdb5-4321-bb04-fcdf7b1503c3', 'name': '', 'tenant_id': '4da0b141d9a54fa1b8bb8bab3581d893', 'network_id': '62259050-bd7e-4d6f-92ca-d49b0fca7fb0', 'ip_version': 4, 'cidr': '31.52.140.128/26', 'allocation_pools': [{'start': '31.52.140.130', 'end': '31.52.140.190'}], 'gateway_ip': '31.52.140.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '31.52.140.130', 'tags': [], 'project_id': '4da0b141d9a54fa1b8bb8bab3581d893'}}
2025-01-10 04:32:09,210 - INFO - Created VN ctest-vn-11272789
2025-01-10 04:32:09,262 - DEBUG - VN ctest-vn-11272789 UUID is 62259050-bd7e-4d6f-92ca-d49b0fca7fb0
2025-01-10 04:32:09,536 - DEBUG - Response for create_network : {'network': {'id': 'dca9b9cc-aa7c-48a2-8250-a8f8f878c461', 'name': 'ctest-vn-67140374', 'tenant_id': '4da0b141d9a54fa1b8bb8bab3581d893', 'project_id': '4da0b141d9a54fa1b8bb8bab3581d893', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15458475', 'ctest-vn-67140374'], 'port_security_enabled': True, 'description': ''}}
2025-01-10 04:32:09,703 - DEBUG - Response for create_subnet : {'subnet': {'id': '9d67aa6d-9566-490e-943b-6de7187edc53', 'name': '', 'tenant_id': '4da0b141d9a54fa1b8bb8bab3581d893', 'network_id': 'dca9b9cc-aa7c-48a2-8250-a8f8f878c461', 'ip_version': 4, 'cidr': '223.130.191.64/26', 'allocation_pools': [{'start': '223.130.191.66', 'end': '223.130.191.126'}], 'gateway_ip': '223.130.191.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '223.130.191.66', 'tags': [], 'project_id': '4da0b141d9a54fa1b8bb8bab3581d893'}}
2025-01-10 04:32:09,721 - INFO - Created VN ctest-vn-67140374
2025-01-10 04:32:09,778 - DEBUG - VN ctest-vn-67140374 UUID is dca9b9cc-aa7c-48a2-8250-a8f8f878c461
2025-01-10 04:32:09,891 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-15458475:ctest-vn-11272789, 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-15458475:ctest-vn-67140374, 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-10 04:32:10,178 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '62259050-bd7e-4d6f-92ca-d49b0fca7fb0', 'name': 'ctest-vn-11272789', 'tenant_id': '4da0b141d9a54fa1b8bb8bab3581d893', 'project_id': '4da0b141d9a54fa1b8bb8bab3581d893', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cb6fc5fe-cdb5-4321-bb04-fcdf7b1503c3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15458475', 'ctest-vn-11272789'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15458475', 'ctest-policy-allow-all-43725685']], 'subnet_ipam': [{'subnet_cidr': '31.52.140.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-10 04:32:10,438 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dca9b9cc-aa7c-48a2-8250-a8f8f878c461', 'name': 'ctest-vn-67140374', 'tenant_id': '4da0b141d9a54fa1b8bb8bab3581d893', 'project_id': '4da0b141d9a54fa1b8bb8bab3581d893', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9d67aa6d-9566-490e-943b-6de7187edc53'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15458475', 'ctest-vn-67140374'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15458475', 'ctest-policy-allow-all-43725685']], 'subnet_ipam': [{'subnet_cidr': '223.130.191.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-10 04:32:10,610 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-01-10 04:32:10,916 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-01-10 04:32:10,949 - DEBUG - Requesting: http://10.0.0.17:8082/domain/031e50c9-3969-4f29-930c-43f074d68d73
2025-01-10 04:32:10,964 - DEBUG - Requesting: http://10.0.0.17:8082/project/4da0b141-d9a5-4fa1-b8bb-8bab3581d893
2025-01-10 04:32:11,049 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/62259050-bd7e-4d6f-92ca-d49b0fca7fb0
2025-01-10 04:32:11,070 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/62259050-bd7e-4d6f-92ca-d49b0fca7fb0
2025-01-10 04:32:11,081 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/42705ca6-8106-4803-8564-8c7c1aa5156b
2025-01-10 04:32:11,088 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/42705ca6-8106-4803-8564-8c7c1aa5156b
2025-01-10 04:32:11,096 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/c349b89e-3d5f-4077-b119-9696879d03b9
2025-01-10 04:32:11,103 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-10 04:32:11,103 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/62259050-bd7e-4d6f-92ca-d49b0fca7fb0
2025-01-10 04:32:11,113 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/42705ca6-8106-4803-8564-8c7c1aa5156b
2025-01-10 04:32:11,130 - INFO - Verified VN network id 9 for VN 62259050-bd7e-4d6f-92ca-d49b0fca7fb0
2025-01-10 04:32:11,130 - INFO - Verifications in API Server for VN ctest-vn-11272789 passed
2025-01-10 04:32:11,130 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/62259050-bd7e-4d6f-92ca-d49b0fca7fb0
2025-01-10 04:32:11,143 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/42705ca6-8106-4803-8564-8c7c1aa5156b
2025-01-10 04:32:11,150 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/42705ca6-8106-4803-8564-8c7c1aa5156b
2025-01-10 04:32:11,160 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/c349b89e-3d5f-4077-b119-9696879d03b9
2025-01-10 04:32:11,173 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15458475:ctest-vn-11272789', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15458475', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7072217466306186607', 'uuid-lslong': '10577500437282979760'}, 'enable': 'true', 'created': '2025-01-10T04:32:08', 'last-modified': '2025-01-10T04:32:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.016401'}
2025-01-10 04:32:11,180 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-10 04:32:11,180 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-11272789 passed
2025-01-10 04:32:11,181 - DEBUG - ====Verifying policy data for ctest-vn-11272789 in API_Server ======
2025-01-10 04:32:11,181 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-01-10 04:32:11,187 - DEBUG - Requesting: http://10.0.0.17:8082/domain/031e50c9-3969-4f29-930c-43f074d68d73
2025-01-10 04:32:11,199 - DEBUG - Requesting: http://10.0.0.17:8082/project/4da0b141-d9a5-4fa1-b8bb-8bab3581d893
2025-01-10 04:32:11,282 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/62259050-bd7e-4d6f-92ca-d49b0fca7fb0
2025-01-10 04:32:11,294 - DEBUG - ==>Verifying data for policy with id: 0438f0e1-ac41-4cc0-8f2f-7110fe76f2d5, fqn: ['default-domain', 'ctest-TestBasicPolicy-15458475', 'ctest-policy-allow-all-43725685']
2025-01-10 04:32:11,294 - INFO - VN ctest-vn-11272789 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-10 04:32:11,294 - DEBUG - Verifying the vn in opserver
2025-01-10 04:32:11,294 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15458475:ctest-vn-11272789 virtual network link through opserver 10.0.0.17
2025-01-10 04:32:11,295 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2025-01-10 04:32:11,586 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2025-01-10 04:32:11,639 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15458475:ctest-vn-11272789', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15458475:ctest-vn-11272789?flat'}
2025-01-10 04:32:11,639 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15458475:ctest-vn-11272789 is found in opserver
2025-01-10 04:32:11,650 - DEBUG - Do not have enough data to verify VN in agent
2025-01-10 04:32:11,655 - DEBUG - VRF ids for VN ctest-vn-11272789: {}
2025-01-10 04:32:11,656 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-01-10 04:32:11,661 - DEBUG - Requesting: http://10.0.0.17:8082/domain/031e50c9-3969-4f29-930c-43f074d68d73
2025-01-10 04:32:11,673 - DEBUG - Requesting: http://10.0.0.17:8082/project/4da0b141-d9a5-4fa1-b8bb-8bab3581d893
2025-01-10 04:32:11,745 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/dca9b9cc-aa7c-48a2-8250-a8f8f878c461
2025-01-10 04:32:11,756 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/dca9b9cc-aa7c-48a2-8250-a8f8f878c461
2025-01-10 04:32:11,765 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/3609bbf1-5f46-47c9-aed9-7dcf4a4c8754
2025-01-10 04:32:11,773 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/3609bbf1-5f46-47c9-aed9-7dcf4a4c8754
2025-01-10 04:32:11,780 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/3ec43be0-1dfb-43b9-b2c0-7f4214f6bb2c
2025-01-10 04:32:11,787 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-10 04:32:11,787 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/dca9b9cc-aa7c-48a2-8250-a8f8f878c461
2025-01-10 04:32:11,798 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/3609bbf1-5f46-47c9-aed9-7dcf4a4c8754
2025-01-10 04:32:11,814 - INFO - Verified VN network id 10 for VN dca9b9cc-aa7c-48a2-8250-a8f8f878c461
2025-01-10 04:32:11,814 - INFO - Verifications in API Server for VN ctest-vn-67140374 passed
2025-01-10 04:32:11,814 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/dca9b9cc-aa7c-48a2-8250-a8f8f878c461
2025-01-10 04:32:11,825 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/3609bbf1-5f46-47c9-aed9-7dcf4a4c8754
2025-01-10 04:32:11,834 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/3609bbf1-5f46-47c9-aed9-7dcf4a4c8754
2025-01-10 04:32:11,842 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/3ec43be0-1dfb-43b9-b2c0-7f4214f6bb2c
2025-01-10 04:32:11,857 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15458475:ctest-vn-67140374', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15458475', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15900444248092985506', 'uuid-lslong': '9390191010341504097'}, 'enable': 'true', 'created': '2025-01-10T04:32:09', 'last-modified': '2025-01-10T04:32:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.454853'}
2025-01-10 04:32:11,863 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-10 04:32:11,863 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-67140374 passed
2025-01-10 04:32:11,863 - DEBUG - ====Verifying policy data for ctest-vn-67140374 in API_Server ======
2025-01-10 04:32:11,863 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-01-10 04:32:11,869 - DEBUG - Requesting: http://10.0.0.17:8082/domain/031e50c9-3969-4f29-930c-43f074d68d73
2025-01-10 04:32:11,881 - DEBUG - Requesting: http://10.0.0.17:8082/project/4da0b141-d9a5-4fa1-b8bb-8bab3581d893
2025-01-10 04:32:11,955 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/dca9b9cc-aa7c-48a2-8250-a8f8f878c461
2025-01-10 04:32:11,965 - DEBUG - ==>Verifying data for policy with id: 0438f0e1-ac41-4cc0-8f2f-7110fe76f2d5, fqn: ['default-domain', 'ctest-TestBasicPolicy-15458475', 'ctest-policy-allow-all-43725685']
2025-01-10 04:32:11,965 - INFO - VN ctest-vn-67140374 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-10 04:32:11,965 - DEBUG - Verifying the vn in opserver
2025-01-10 04:32:11,965 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15458475:ctest-vn-67140374 virtual network link through opserver 10.0.0.17
2025-01-10 04:32:11,965 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2025-01-10 04:32:11,976 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15458475:ctest-vn-67140374', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15458475:ctest-vn-67140374?flat'}
2025-01-10 04:32:11,976 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15458475:ctest-vn-67140374 is found in opserver
2025-01-10 04:32:11,986 - DEBUG - Do not have enough data to verify VN in agent
2025-01-10 04:32:11,991 - DEBUG - VRF ids for VN ctest-vn-67140374: {}
2025-01-10 04:32:12,047 - DEBUG - Services list from nova: [