2025-01-07 09:18:57,203 - INFO - Domain Default found not creating
2025-01-07 09:18:57,365 - INFO - Project ctest-TestBasicPolicy-69081927 not found, creating it
2025-01-07 09:18:57,878 - INFO - Created Project:ctest-TestBasicPolicy-69081927, ID : c8d49188-9efc-495e-9d38-f1fcc6444ba1
2025-01-07 09:18:59,504 - INFO - ================================================================================
2025-01-07 09:18:59,504 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-07 09:18:59,504 - 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-07 09:18:59,765 - DEBUG - Nothing to compare xmpp stats {'10.0.0.32': {'10.20.0.22': '0'}} with
2025-01-07 09:18:59,765 - INFO - Initial checks done. Running the testcase now
2025-01-07 09:18:59,766 - INFO -
2025-01-07 09:19:00,383 - DEBUG - Response for create_network : {'network': {'id': '91a44b41-9b2d-4f91-9356-dbd1683957b0', 'name': 'ctest-vn-63645819', 'tenant_id': 'c8d491889efc495e9d38f1fcc6444ba1', 'project_id': 'c8d491889efc495e9d38f1fcc6444ba1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69081927', 'ctest-vn-63645819'], 'port_security_enabled': True, 'description': ''}}
2025-01-07 09:19:00,567 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd3ae0dfa-3262-4f23-b7bc-891376f1486e', 'name': '', 'tenant_id': 'c8d491889efc495e9d38f1fcc6444ba1', 'network_id': '91a44b41-9b2d-4f91-9356-dbd1683957b0', 'ip_version': 4, 'cidr': '136.53.1.64/26', 'allocation_pools': [{'start': '136.53.1.66', 'end': '136.53.1.126'}], 'gateway_ip': '136.53.1.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '136.53.1.66', 'tags': [], 'project_id': 'c8d491889efc495e9d38f1fcc6444ba1'}}
2025-01-07 09:19:00,588 - INFO - Created VN ctest-vn-63645819
2025-01-07 09:19:00,642 - DEBUG - VN ctest-vn-63645819 UUID is 91a44b41-9b2d-4f91-9356-dbd1683957b0
2025-01-07 09:19:00,982 - DEBUG - Response for create_network : {'network': {'id': 'f772f4fb-b224-4abe-94ed-5fc0dcc8e1dc', 'name': 'ctest-vn-40510547', 'tenant_id': 'c8d491889efc495e9d38f1fcc6444ba1', 'project_id': 'c8d491889efc495e9d38f1fcc6444ba1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69081927', 'ctest-vn-40510547'], 'port_security_enabled': True, 'description': ''}}
2025-01-07 09:19:01,220 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dce17a72-47be-42fd-9d64-b788716b92a3', 'name': '', 'tenant_id': 'c8d491889efc495e9d38f1fcc6444ba1', 'network_id': 'f772f4fb-b224-4abe-94ed-5fc0dcc8e1dc', 'ip_version': 4, 'cidr': '74.208.75.64/26', 'allocation_pools': [{'start': '74.208.75.66', 'end': '74.208.75.126'}], 'gateway_ip': '74.208.75.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '74.208.75.66', 'tags': [], 'project_id': 'c8d491889efc495e9d38f1fcc6444ba1'}}
2025-01-07 09:19:01,248 - INFO - Created VN ctest-vn-40510547
2025-01-07 09:19:01,302 - DEBUG - VN ctest-vn-40510547 UUID is f772f4fb-b224-4abe-94ed-5fc0dcc8e1dc
2025-01-07 09:19:01,427 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-69081927:ctest-vn-63645819, 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-69081927:ctest-vn-40510547, 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-07 09:19:01,775 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '91a44b41-9b2d-4f91-9356-dbd1683957b0', 'name': 'ctest-vn-63645819', 'tenant_id': 'c8d491889efc495e9d38f1fcc6444ba1', 'project_id': 'c8d491889efc495e9d38f1fcc6444ba1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d3ae0dfa-3262-4f23-b7bc-891376f1486e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69081927', 'ctest-vn-63645819'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-69081927', 'ctest-policy-allow-all-76191933']], 'subnet_ipam': [{'subnet_cidr': '136.53.1.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-07 09:19:02,069 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f772f4fb-b224-4abe-94ed-5fc0dcc8e1dc', 'name': 'ctest-vn-40510547', 'tenant_id': 'c8d491889efc495e9d38f1fcc6444ba1', 'project_id': 'c8d491889efc495e9d38f1fcc6444ba1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['dce17a72-47be-42fd-9d64-b788716b92a3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69081927', 'ctest-vn-40510547'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-69081927', 'ctest-policy-allow-all-76191933']], 'subnet_ipam': [{'subnet_cidr': '74.208.75.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-07 09:19:02,230 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2025-01-07 09:19:02,532 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2025-01-07 09:19:02,573 - DEBUG - Requesting: http://10.0.0.32:8082/domain/e019cce0-4663-4b91-86f2-6f33ce4396af
2025-01-07 09:19:02,590 - DEBUG - Requesting: http://10.0.0.32:8082/project/c8d49188-9efc-495e-9d38-f1fcc6444ba1
2025-01-07 09:19:02,673 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/91a44b41-9b2d-4f91-9356-dbd1683957b0
2025-01-07 09:19:02,686 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/91a44b41-9b2d-4f91-9356-dbd1683957b0
2025-01-07 09:19:02,697 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/7e38855b-ee2c-4039-881c-5a865710431c
2025-01-07 09:19:02,706 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/7e38855b-ee2c-4039-881c-5a865710431c
2025-01-07 09:19:02,716 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/7185d625-8909-4d26-bf23-3dee962af274
2025-01-07 09:19:02,724 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-07 09:19:02,724 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/91a44b41-9b2d-4f91-9356-dbd1683957b0
2025-01-07 09:19:02,734 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/7e38855b-ee2c-4039-881c-5a865710431c
2025-01-07 09:19:02,750 - INFO - Verified VN network id 8 for VN 91a44b41-9b2d-4f91-9356-dbd1683957b0
2025-01-07 09:19:02,750 - INFO - Verifications in API Server for VN ctest-vn-63645819 passed
2025-01-07 09:19:02,751 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/91a44b41-9b2d-4f91-9356-dbd1683957b0
2025-01-07 09:19:02,762 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/7e38855b-ee2c-4039-881c-5a865710431c
2025-01-07 09:19:02,771 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/7e38855b-ee2c-4039-881c-5a865710431c
2025-01-07 09:19:02,779 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/7185d625-8909-4d26-bf23-3dee962af274
2025-01-07 09:19:02,792 - DEBUG - Control-node 10.0.0.32 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-69081927:ctest-vn-63645819', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-69081927', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10494595776828493713', 'uuid-lslong': '10616914864015759280'}, 'enable': 'true', 'created': '2025-01-07T09:19:00', 'last-modified': '2025-01-07T09:19:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.062800'}
2025-01-07 09:19:02,799 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-07 09:19:02,799 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-63645819 passed
2025-01-07 09:19:02,800 - DEBUG - ====Verifying policy data for ctest-vn-63645819 in API_Server ======
2025-01-07 09:19:02,800 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2025-01-07 09:19:02,806 - DEBUG - Requesting: http://10.0.0.32:8082/domain/e019cce0-4663-4b91-86f2-6f33ce4396af
2025-01-07 09:19:02,819 - DEBUG - Requesting: http://10.0.0.32:8082/project/c8d49188-9efc-495e-9d38-f1fcc6444ba1
2025-01-07 09:19:02,900 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/91a44b41-9b2d-4f91-9356-dbd1683957b0
2025-01-07 09:19:02,912 - DEBUG - ==>Verifying data for policy with id: a7f557c5-c8be-4067-be93-033acbbcebe2, fqn: ['default-domain', 'ctest-TestBasicPolicy-69081927', 'ctest-policy-allow-all-76191933']
2025-01-07 09:19:02,912 - INFO - VN ctest-vn-63645819 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-07 09:19:02,913 - DEBUG - Verifying the vn in opserver
2025-01-07 09:19:02,913 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-69081927:ctest-vn-63645819 virtual network link through opserver 10.0.0.32
2025-01-07 09:19:02,913 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks
2025-01-07 09:19:03,207 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks
2025-01-07 09:19:03,271 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-69081927:ctest-vn-63645819', 'href': 'http://10.0.0.32:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-69081927:ctest-vn-63645819?flat'}
2025-01-07 09:19:03,271 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-69081927:ctest-vn-63645819 is found in opserver
2025-01-07 09:19:03,286 - DEBUG - Do not have enough data to verify VN in agent
2025-01-07 09:19:03,293 - DEBUG - VRF ids for VN ctest-vn-63645819: {}
2025-01-07 09:19:03,293 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2025-01-07 09:19:03,299 - DEBUG - Requesting: http://10.0.0.32:8082/domain/e019cce0-4663-4b91-86f2-6f33ce4396af
2025-01-07 09:19:03,313 - DEBUG - Requesting: http://10.0.0.32:8082/project/c8d49188-9efc-495e-9d38-f1fcc6444ba1
2025-01-07 09:19:03,399 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/f772f4fb-b224-4abe-94ed-5fc0dcc8e1dc
2025-01-07 09:19:03,414 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/f772f4fb-b224-4abe-94ed-5fc0dcc8e1dc
2025-01-07 09:19:03,428 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/dc53b2d7-8235-4a45-aecc-c2a623007bcc
2025-01-07 09:19:03,439 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/dc53b2d7-8235-4a45-aecc-c2a623007bcc
2025-01-07 09:19:03,447 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/714e61e0-d825-4249-b5ca-3e0ee2958c92
2025-01-07 09:19:03,454 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-07 09:19:03,454 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/f772f4fb-b224-4abe-94ed-5fc0dcc8e1dc
2025-01-07 09:19:03,464 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/dc53b2d7-8235-4a45-aecc-c2a623007bcc
2025-01-07 09:19:03,482 - INFO - Verified VN network id 9 for VN f772f4fb-b224-4abe-94ed-5fc0dcc8e1dc
2025-01-07 09:19:03,482 - INFO - Verifications in API Server for VN ctest-vn-40510547 passed
2025-01-07 09:19:03,482 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/f772f4fb-b224-4abe-94ed-5fc0dcc8e1dc
2025-01-07 09:19:03,493 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/dc53b2d7-8235-4a45-aecc-c2a623007bcc
2025-01-07 09:19:03,503 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/dc53b2d7-8235-4a45-aecc-c2a623007bcc
2025-01-07 09:19:03,511 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/714e61e0-d825-4249-b5ca-3e0ee2958c92
2025-01-07 09:19:03,524 - DEBUG - Control-node 10.0.0.32 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-69081927:ctest-vn-40510547', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-69081927', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17830583236575906494', 'uuid-lslong': '10731338769036272092'}, 'enable': 'true', 'created': '2025-01-07T09:19:00', 'last-modified': '2025-01-07T09:19:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.531263'}
2025-01-07 09:19:03,530 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-07 09:19:03,531 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-40510547 passed
2025-01-07 09:19:03,531 - DEBUG - ====Verifying policy data for ctest-vn-40510547 in API_Server ======
2025-01-07 09:19:03,531 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2025-01-07 09:19:03,538 - DEBUG - Requesting: http://10.0.0.32:8082/domain/e019cce0-4663-4b91-86f2-6f33ce4396af
2025-01-07 09:19:03,551 - DEBUG - Requesting: http://10.0.0.32:8082/project/c8d49188-9efc-495e-9d38-f1fcc6444ba1
2025-01-07 09:19:03,627 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/f772f4fb-b224-4abe-94ed-5fc0dcc8e1dc
2025-01-07 09:19:03,639 - DEBUG - ==>Verifying data for policy with id: a7f557c5-c8be-4067-be93-033acbbcebe2, fqn: ['default-domain', 'ctest-TestBasicPolicy-69081927', 'ctest-policy-allow-all-76191933']
2025-01-07 09:19:03,639 - INFO - VN ctest-vn-40510547 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-07 09:19:03,639 - DEBUG - Verifying the vn in opserver
2025-01-07 09:19:03,639 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-69081927:ctest-vn-40510547 virtual network link through opserver 10.0.0.32
2025-01-07 09:19:03,640 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks
2025-01-07 09:19:03,652 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-69081927:ctest-vn-40510547', 'href': 'http://10.0.0.32:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-69081927:ctest-vn-40510547?flat'}
2025-01-07 09:19:03,653 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-69081927:ctest-vn-40510547 is found in opserver
2025-01-07 09:19:03,665 - DEBUG - Do not have enough data to verify VN in agent
2025-01-07 09:19:03,671 - DEBUG - VRF ids for VN ctest-vn-40510547: {}
2025-01-07 09:19:03,736 - DEBUG - Services list from nova: [