2025-04-28 02:06:45,772 - INFO - Domain Default found not creating
2025-04-28 02:06:45,896 - INFO - Project ctest-TestBasicPolicy-04749414 not found, creating it
2025-04-28 02:06:46,308 - INFO - Created Project:ctest-TestBasicPolicy-04749414, ID : 32eb31c1-756c-4147-b222-fcc95ce334dd
2025-04-28 02:06:48,219 - INFO - ================================================================================
2025-04-28 02:06:48,220 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-28 02:06:48,220 - 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-04-28 02:06:48,478 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.209': '0'}} with
2025-04-28 02:06:48,478 - INFO - Initial checks done. Running the testcase now
2025-04-28 02:06:48,478 - INFO -
2025-04-28 02:06:48,973 - DEBUG - Response for create_network : {'network': {'id': '0d8a2c7f-86d0-4ab5-847f-a032637c4e80', 'name': 'ctest-vn-44034964', 'tenant_id': '32eb31c1756c4147b222fcc95ce334dd', 'project_id': '32eb31c1756c4147b222fcc95ce334dd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04749414', 'ctest-vn-44034964'], 'port_security_enabled': True, 'description': ''}}
2025-04-28 02:06:49,137 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b130aa69-6929-427e-8482-565248f547d1', 'name': '', 'tenant_id': '32eb31c1756c4147b222fcc95ce334dd', 'network_id': '0d8a2c7f-86d0-4ab5-847f-a032637c4e80', 'ip_version': 4, 'cidr': '175.70.195.128/26', 'allocation_pools': [{'start': '175.70.195.130', 'end': '175.70.195.190'}], 'gateway_ip': '175.70.195.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '175.70.195.130', 'tags': [], 'project_id': '32eb31c1756c4147b222fcc95ce334dd'}}
2025-04-28 02:06:49,152 - INFO - Created VN ctest-vn-44034964
2025-04-28 02:06:49,205 - DEBUG - VN ctest-vn-44034964 UUID is 0d8a2c7f-86d0-4ab5-847f-a032637c4e80
2025-04-28 02:06:49,505 - DEBUG - Response for create_network : {'network': {'id': 'bcfad73e-feb0-45e5-888a-053856243c87', 'name': 'ctest-vn-74185787', 'tenant_id': '32eb31c1756c4147b222fcc95ce334dd', 'project_id': '32eb31c1756c4147b222fcc95ce334dd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04749414', 'ctest-vn-74185787'], 'port_security_enabled': True, 'description': ''}}
2025-04-28 02:06:49,676 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f41f4666-4770-4719-a975-6b605b67bcef', 'name': '', 'tenant_id': '32eb31c1756c4147b222fcc95ce334dd', 'network_id': 'bcfad73e-feb0-45e5-888a-053856243c87', 'ip_version': 4, 'cidr': '165.101.36.0/26', 'allocation_pools': [{'start': '165.101.36.2', 'end': '165.101.36.62'}], 'gateway_ip': '165.101.36.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '165.101.36.2', 'tags': [], 'project_id': '32eb31c1756c4147b222fcc95ce334dd'}}
2025-04-28 02:06:49,691 - INFO - Created VN ctest-vn-74185787
2025-04-28 02:06:49,741 - DEBUG - VN ctest-vn-74185787 UUID is bcfad73e-feb0-45e5-888a-053856243c87
2025-04-28 02:06:49,885 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-04749414:ctest-vn-44034964, 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-04749414:ctest-vn-74185787, 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-04-28 02:06:50,166 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0d8a2c7f-86d0-4ab5-847f-a032637c4e80', 'name': 'ctest-vn-44034964', 'tenant_id': '32eb31c1756c4147b222fcc95ce334dd', 'project_id': '32eb31c1756c4147b222fcc95ce334dd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b130aa69-6929-427e-8482-565248f547d1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04749414', 'ctest-vn-44034964'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-04749414', 'ctest-policy-allow-all-57224940']], 'subnet_ipam': [{'subnet_cidr': '175.70.195.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-28 02:06:50,395 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bcfad73e-feb0-45e5-888a-053856243c87', 'name': 'ctest-vn-74185787', 'tenant_id': '32eb31c1756c4147b222fcc95ce334dd', 'project_id': '32eb31c1756c4147b222fcc95ce334dd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f41f4666-4770-4719-a975-6b605b67bcef'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04749414', 'ctest-vn-74185787'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-04749414', 'ctest-policy-allow-all-57224940']], 'subnet_ipam': [{'subnet_cidr': '165.101.36.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-28 02:06:50,561 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-28 02:06:50,853 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-28 02:06:50,879 - DEBUG - Requesting: http://10.0.0.50:8082/domain/09530269-b2df-4ef6-995f-dfbc59aefc94
2025-04-28 02:06:50,890 - DEBUG - Requesting: http://10.0.0.50:8082/project/32eb31c1-756c-4147-b222-fcc95ce334dd
2025-04-28 02:06:50,964 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0d8a2c7f-86d0-4ab5-847f-a032637c4e80
2025-04-28 02:06:50,977 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0d8a2c7f-86d0-4ab5-847f-a032637c4e80
2025-04-28 02:06:50,988 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2ea417bc-7899-4e2a-b079-31c324178a39
2025-04-28 02:06:50,995 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2ea417bc-7899-4e2a-b079-31c324178a39
2025-04-28 02:06:51,002 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/ca9f3a38-ddbf-4fb8-ac66-516316b403d7
2025-04-28 02:06:51,007 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-28 02:06:51,007 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0d8a2c7f-86d0-4ab5-847f-a032637c4e80
2025-04-28 02:06:51,017 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2ea417bc-7899-4e2a-b079-31c324178a39
2025-04-28 02:06:51,030 - INFO - Verified VN network id 8 for VN 0d8a2c7f-86d0-4ab5-847f-a032637c4e80
2025-04-28 02:06:51,030 - INFO - Verifications in API Server for VN ctest-vn-44034964 passed
2025-04-28 02:06:51,030 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0d8a2c7f-86d0-4ab5-847f-a032637c4e80
2025-04-28 02:06:51,039 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2ea417bc-7899-4e2a-b079-31c324178a39
2025-04-28 02:06:51,045 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2ea417bc-7899-4e2a-b079-31c324178a39
2025-04-28 02:06:51,050 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/ca9f3a38-ddbf-4fb8-ac66-516316b403d7
2025-04-28 02:06:51,062 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-04749414:ctest-vn-44034964', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04749414', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '975641195513399989', 'uuid-lslong': '9547525873326640768'}, 'enable': 'true', 'created': '2025-04-28T02:06:48', 'last-modified': '2025-04-28T02:06:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.914648'}
2025-04-28 02:06:51,069 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-28 02:06:51,069 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-44034964 passed
2025-04-28 02:06:51,069 - DEBUG - ====Verifying policy data for ctest-vn-44034964 in API_Server ======
2025-04-28 02:06:51,069 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-28 02:06:51,075 - DEBUG - Requesting: http://10.0.0.50:8082/domain/09530269-b2df-4ef6-995f-dfbc59aefc94
2025-04-28 02:06:51,085 - DEBUG - Requesting: http://10.0.0.50:8082/project/32eb31c1-756c-4147-b222-fcc95ce334dd
2025-04-28 02:06:51,156 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0d8a2c7f-86d0-4ab5-847f-a032637c4e80
2025-04-28 02:06:51,168 - DEBUG - ==>Verifying data for policy with id: 0ea16de0-d14f-4f72-bc8d-48d63f06600e, fqn: ['default-domain', 'ctest-TestBasicPolicy-04749414', 'ctest-policy-allow-all-57224940']
2025-04-28 02:06:51,168 - INFO - VN ctest-vn-44034964 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-28 02:06:51,168 - DEBUG - Verifying the vn in opserver
2025-04-28 02:06:51,168 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-04749414:ctest-vn-44034964 virtual network link through opserver 10.0.0.50
2025-04-28 02:06:51,169 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-04-28 02:06:51,459 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-04-28 02:06:51,507 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-04749414:ctest-vn-44034964', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-04749414:ctest-vn-44034964?flat'}
2025-04-28 02:06:51,507 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-04749414:ctest-vn-44034964 is found in opserver
2025-04-28 02:06:51,518 - DEBUG - Do not have enough data to verify VN in agent
2025-04-28 02:06:51,523 - DEBUG - VRF ids for VN ctest-vn-44034964: {}
2025-04-28 02:06:51,523 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-28 02:06:51,528 - DEBUG - Requesting: http://10.0.0.50:8082/domain/09530269-b2df-4ef6-995f-dfbc59aefc94
2025-04-28 02:06:51,538 - DEBUG - Requesting: http://10.0.0.50:8082/project/32eb31c1-756c-4147-b222-fcc95ce334dd
2025-04-28 02:06:51,613 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/bcfad73e-feb0-45e5-888a-053856243c87
2025-04-28 02:06:51,624 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/bcfad73e-feb0-45e5-888a-053856243c87
2025-04-28 02:06:51,633 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d8f64ef7-c642-4829-8fea-4c6960bb025a
2025-04-28 02:06:51,639 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d8f64ef7-c642-4829-8fea-4c6960bb025a
2025-04-28 02:06:51,646 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/f4d6b419-135e-464d-a20f-89ebab4f22e5
2025-04-28 02:06:51,652 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-28 02:06:51,652 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/bcfad73e-feb0-45e5-888a-053856243c87
2025-04-28 02:06:51,660 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d8f64ef7-c642-4829-8fea-4c6960bb025a
2025-04-28 02:06:51,673 - INFO - Verified VN network id 9 for VN bcfad73e-feb0-45e5-888a-053856243c87
2025-04-28 02:06:51,674 - INFO - Verifications in API Server for VN ctest-vn-74185787 passed
2025-04-28 02:06:51,674 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/bcfad73e-feb0-45e5-888a-053856243c87
2025-04-28 02:06:51,682 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d8f64ef7-c642-4829-8fea-4c6960bb025a
2025-04-28 02:06:51,688 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d8f64ef7-c642-4829-8fea-4c6960bb025a
2025-04-28 02:06:51,694 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/f4d6b419-135e-464d-a20f-89ebab4f22e5
2025-04-28 02:06:51,705 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-04749414:ctest-vn-74185787', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04749414', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13617433088869025253', 'uuid-lslong': '9838682075465792647'}, 'enable': 'true', 'created': '2025-04-28T02:06:49', 'last-modified': '2025-04-28T02:06:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.335054'}
2025-04-28 02:06:51,710 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-28 02:06:51,711 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-74185787 passed
2025-04-28 02:06:51,711 - DEBUG - ====Verifying policy data for ctest-vn-74185787 in API_Server ======
2025-04-28 02:06:51,711 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-28 02:06:51,715 - DEBUG - Requesting: http://10.0.0.50:8082/domain/09530269-b2df-4ef6-995f-dfbc59aefc94
2025-04-28 02:06:51,725 - DEBUG - Requesting: http://10.0.0.50:8082/project/32eb31c1-756c-4147-b222-fcc95ce334dd
2025-04-28 02:06:51,797 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/bcfad73e-feb0-45e5-888a-053856243c87
2025-04-28 02:06:51,806 - DEBUG - ==>Verifying data for policy with id: 0ea16de0-d14f-4f72-bc8d-48d63f06600e, fqn: ['default-domain', 'ctest-TestBasicPolicy-04749414', 'ctest-policy-allow-all-57224940']
2025-04-28 02:06:51,806 - INFO - VN ctest-vn-74185787 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-28 02:06:51,806 - DEBUG - Verifying the vn in opserver
2025-04-28 02:06:51,806 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-04749414:ctest-vn-74185787 virtual network link through opserver 10.0.0.50
2025-04-28 02:06:51,806 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-04-28 02:06:51,815 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-04749414:ctest-vn-74185787', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-04749414:ctest-vn-74185787?flat'}
2025-04-28 02:06:51,815 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-04749414:ctest-vn-74185787 is found in opserver
2025-04-28 02:06:51,826 - DEBUG - Do not have enough data to verify VN in agent
2025-04-28 02:06:51,830 - DEBUG - VRF ids for VN ctest-vn-74185787: {}
2025-04-28 02:06:51,879 - DEBUG - Services list from nova: [