2025-08-11 15:30:01,112 - INFO - Domain Default found not creating
2025-08-11 15:30:01,242 - INFO - Project ctest-TestBasicPolicy-10557103 not found, creating it
2025-08-11 15:30:01,681 - INFO - Created Project:ctest-TestBasicPolicy-10557103, ID : 63df0e8b-c52c-49f5-bd9f-d9ff6cc3c5b2
2025-08-11 15:30:03,614 - INFO - ================================================================================
2025-08-11 15:30:03,615 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-11 15:30:03,615 - 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-08-11 15:30:03,868 - DEBUG - Nothing to compare xmpp stats {'10.0.0.128': {'10.0.0.128': '0'}} with
2025-08-11 15:30:03,868 - INFO - Initial checks done. Running the testcase now
2025-08-11 15:30:03,868 - INFO -
2025-08-11 15:30:04,390 - DEBUG - Response for create_network : {'network': {'id': '9173139a-e4a3-4946-9a7b-5e0093547c70', 'name': 'ctest-vn-38970181', 'tenant_id': '63df0e8bc52c49f5bd9fd9ff6cc3c5b2', 'project_id': '63df0e8bc52c49f5bd9fd9ff6cc3c5b2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10557103', 'ctest-vn-38970181'], 'port_security_enabled': True, 'description': ''}}
2025-08-11 15:30:04,557 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd93133e5-94fa-494f-861c-09a2aa2cc73c', 'name': '', 'tenant_id': '63df0e8bc52c49f5bd9fd9ff6cc3c5b2', 'network_id': '9173139a-e4a3-4946-9a7b-5e0093547c70', 'ip_version': 4, 'cidr': '54.73.93.64/26', 'allocation_pools': [{'start': '54.73.93.66', 'end': '54.73.93.126'}], 'gateway_ip': '54.73.93.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '54.73.93.66', 'tags': [], 'project_id': '63df0e8bc52c49f5bd9fd9ff6cc3c5b2'}}
2025-08-11 15:30:04,572 - INFO - Created VN ctest-vn-38970181
2025-08-11 15:30:04,620 - DEBUG - VN ctest-vn-38970181 UUID is 9173139a-e4a3-4946-9a7b-5e0093547c70
2025-08-11 15:30:04,930 - DEBUG - Response for create_network : {'network': {'id': 'dfb50ffb-20c0-419a-b0e3-41b1179e3a0b', 'name': 'ctest-vn-38411801', 'tenant_id': '63df0e8bc52c49f5bd9fd9ff6cc3c5b2', 'project_id': '63df0e8bc52c49f5bd9fd9ff6cc3c5b2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10557103', 'ctest-vn-38411801'], 'port_security_enabled': True, 'description': ''}}
2025-08-11 15:30:05,072 - DEBUG - Response for create_subnet : {'subnet': {'id': '359068b4-86a7-42fd-b287-69353c83e230', 'name': '', 'tenant_id': '63df0e8bc52c49f5bd9fd9ff6cc3c5b2', 'network_id': 'dfb50ffb-20c0-419a-b0e3-41b1179e3a0b', 'ip_version': 4, 'cidr': '79.159.77.192/26', 'allocation_pools': [{'start': '79.159.77.194', 'end': '79.159.77.254'}], 'gateway_ip': '79.159.77.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '79.159.77.194', 'tags': [], 'project_id': '63df0e8bc52c49f5bd9fd9ff6cc3c5b2'}}
2025-08-11 15:30:05,086 - INFO - Created VN ctest-vn-38411801
2025-08-11 15:30:05,140 - DEBUG - VN ctest-vn-38411801 UUID is dfb50ffb-20c0-419a-b0e3-41b1179e3a0b
2025-08-11 15:30:05,284 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-10557103:ctest-vn-38970181, 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-10557103:ctest-vn-38411801, 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-08-11 15:30:05,571 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9173139a-e4a3-4946-9a7b-5e0093547c70', 'name': 'ctest-vn-38970181', 'tenant_id': '63df0e8bc52c49f5bd9fd9ff6cc3c5b2', 'project_id': '63df0e8bc52c49f5bd9fd9ff6cc3c5b2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d93133e5-94fa-494f-861c-09a2aa2cc73c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10557103', 'ctest-vn-38970181'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-10557103', 'ctest-policy-allow-all-31566567']], 'subnet_ipam': [{'subnet_cidr': '54.73.93.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-11 15:30:05,825 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dfb50ffb-20c0-419a-b0e3-41b1179e3a0b', 'name': 'ctest-vn-38411801', 'tenant_id': '63df0e8bc52c49f5bd9fd9ff6cc3c5b2', 'project_id': '63df0e8bc52c49f5bd9fd9ff6cc3c5b2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['359068b4-86a7-42fd-b287-69353c83e230'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10557103', 'ctest-vn-38411801'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-10557103', 'ctest-policy-allow-all-31566567']], 'subnet_ipam': [{'subnet_cidr': '79.159.77.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-11 15:30:05,940 - DEBUG - Requesting: http://10.0.0.128:8082/domains
2025-08-11 15:30:06,245 - DEBUG - Requesting: http://10.0.0.128:8082/domains
2025-08-11 15:30:06,270 - DEBUG - Requesting: http://10.0.0.128:8082/domain/c0da02fa-8c67-478d-8037-01d49286901b
2025-08-11 15:30:06,280 - DEBUG - Requesting: http://10.0.0.128:8082/project/63df0e8b-c52c-49f5-bd9f-d9ff6cc3c5b2
2025-08-11 15:30:06,354 - DEBUG - Requesting: http://10.0.0.128:8082/virtual-network/9173139a-e4a3-4946-9a7b-5e0093547c70
2025-08-11 15:30:06,366 - DEBUG - Requesting: http://10.0.0.128:8082/virtual-network/9173139a-e4a3-4946-9a7b-5e0093547c70
2025-08-11 15:30:06,382 - DEBUG - Requesting: http://10.0.0.128:8082/routing-instance/193d3db0-248b-4653-ad8e-5a3aa4671ccd
2025-08-11 15:30:06,387 - DEBUG - Requesting: http://10.0.0.128:8082/routing-instance/193d3db0-248b-4653-ad8e-5a3aa4671ccd
2025-08-11 15:30:06,392 - DEBUG - Requesting: http://10.0.0.128:8082/route-target/c93f7729-c43a-4064-925a-348c8937e6eb
2025-08-11 15:30:06,397 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-11 15:30:06,397 - DEBUG - Requesting: http://10.0.0.128:8082/virtual-network/9173139a-e4a3-4946-9a7b-5e0093547c70
2025-08-11 15:30:06,404 - DEBUG - Requesting: http://10.0.0.128:8082/routing-instance/193d3db0-248b-4653-ad8e-5a3aa4671ccd
2025-08-11 15:30:06,415 - INFO - Verified VN network id 11 for VN 9173139a-e4a3-4946-9a7b-5e0093547c70
2025-08-11 15:30:06,415 - INFO - Verifications in API Server for VN ctest-vn-38970181 passed
2025-08-11 15:30:06,415 - DEBUG - Requesting: http://10.0.0.128:8082/virtual-network/9173139a-e4a3-4946-9a7b-5e0093547c70
2025-08-11 15:30:06,422 - DEBUG - Requesting: http://10.0.0.128:8082/routing-instance/193d3db0-248b-4653-ad8e-5a3aa4671ccd
2025-08-11 15:30:06,427 - DEBUG - Requesting: http://10.0.0.128:8082/routing-instance/193d3db0-248b-4653-ad8e-5a3aa4671ccd
2025-08-11 15:30:06,431 - DEBUG - Requesting: http://10.0.0.128:8082/route-target/c93f7729-c43a-4064-925a-348c8937e6eb
2025-08-11 15:30:06,441 - DEBUG - Control-node 10.0.0.128 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-10557103:ctest-vn-38970181', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-10557103', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10480742313803073862', 'uuid-lslong': '11131594260541111408'}, 'enable': 'true', 'created': '2025-08-11T15:30:04', 'last-modified': '2025-08-11T15:30:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.897446'}
2025-08-11 15:30:06,447 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-11 15:30:06,447 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-38970181 passed
2025-08-11 15:30:06,447 - DEBUG - ====Verifying policy data for ctest-vn-38970181 in API_Server ======
2025-08-11 15:30:06,448 - DEBUG - Requesting: http://10.0.0.128:8082/domains
2025-08-11 15:30:06,451 - DEBUG - Requesting: http://10.0.0.128:8082/domain/c0da02fa-8c67-478d-8037-01d49286901b
2025-08-11 15:30:06,459 - DEBUG - Requesting: http://10.0.0.128:8082/project/63df0e8b-c52c-49f5-bd9f-d9ff6cc3c5b2
2025-08-11 15:30:06,537 - DEBUG - Requesting: http://10.0.0.128:8082/virtual-network/9173139a-e4a3-4946-9a7b-5e0093547c70
2025-08-11 15:30:06,545 - DEBUG - ==>Verifying data for policy with id: e50f9776-2b8e-47da-87b4-b4f4394c44f9, fqn: ['default-domain', 'ctest-TestBasicPolicy-10557103', 'ctest-policy-allow-all-31566567']
2025-08-11 15:30:06,545 - INFO - VN ctest-vn-38970181 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-11 15:30:06,545 - DEBUG - Verifying the vn in opserver
2025-08-11 15:30:06,545 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-10557103:ctest-vn-38970181 virtual network link through opserver 10.0.0.128
2025-08-11 15:30:06,545 - DEBUG - Requesting: http://10.0.0.128:8081/analytics/uves/virtual-networks
2025-08-11 15:30:06,832 - DEBUG - Requesting: http://10.0.0.128:8081/analytics/uves/virtual-networks
2025-08-11 15:30:06,879 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-10557103:ctest-vn-38970181', 'href': 'http://10.0.0.128:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-10557103:ctest-vn-38970181?flat'}
2025-08-11 15:30:06,879 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-10557103:ctest-vn-38970181 is found in opserver
2025-08-11 15:30:06,888 - DEBUG - Do not have enough data to verify VN in agent
2025-08-11 15:30:06,893 - DEBUG - VRF ids for VN ctest-vn-38970181: {}
2025-08-11 15:30:06,893 - DEBUG - Requesting: http://10.0.0.128:8082/domains
2025-08-11 15:30:06,899 - DEBUG - Requesting: http://10.0.0.128:8082/domain/c0da02fa-8c67-478d-8037-01d49286901b
2025-08-11 15:30:06,909 - DEBUG - Requesting: http://10.0.0.128:8082/project/63df0e8b-c52c-49f5-bd9f-d9ff6cc3c5b2
2025-08-11 15:30:06,974 - DEBUG - Requesting: http://10.0.0.128:8082/virtual-network/dfb50ffb-20c0-419a-b0e3-41b1179e3a0b
2025-08-11 15:30:06,985 - DEBUG - Requesting: http://10.0.0.128:8082/virtual-network/dfb50ffb-20c0-419a-b0e3-41b1179e3a0b
2025-08-11 15:30:06,992 - DEBUG - Requesting: http://10.0.0.128:8082/routing-instance/9c738ce4-6aa9-4363-aa75-58ff49db3be4
2025-08-11 15:30:06,999 - DEBUG - Requesting: http://10.0.0.128:8082/routing-instance/9c738ce4-6aa9-4363-aa75-58ff49db3be4
2025-08-11 15:30:07,004 - DEBUG - Requesting: http://10.0.0.128:8082/route-target/a3c9cd24-8285-4f79-bb2d-825dce797491
2025-08-11 15:30:07,010 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-11 15:30:07,010 - DEBUG - Requesting: http://10.0.0.128:8082/virtual-network/dfb50ffb-20c0-419a-b0e3-41b1179e3a0b
2025-08-11 15:30:07,016 - DEBUG - Requesting: http://10.0.0.128:8082/routing-instance/9c738ce4-6aa9-4363-aa75-58ff49db3be4
2025-08-11 15:30:07,028 - INFO - Verified VN network id 12 for VN dfb50ffb-20c0-419a-b0e3-41b1179e3a0b
2025-08-11 15:30:07,028 - INFO - Verifications in API Server for VN ctest-vn-38411801 passed
2025-08-11 15:30:07,028 - DEBUG - Requesting: http://10.0.0.128:8082/virtual-network/dfb50ffb-20c0-419a-b0e3-41b1179e3a0b
2025-08-11 15:30:07,035 - DEBUG - Requesting: http://10.0.0.128:8082/routing-instance/9c738ce4-6aa9-4363-aa75-58ff49db3be4
2025-08-11 15:30:07,041 - DEBUG - Requesting: http://10.0.0.128:8082/routing-instance/9c738ce4-6aa9-4363-aa75-58ff49db3be4
2025-08-11 15:30:07,049 - DEBUG - Requesting: http://10.0.0.128:8082/route-target/a3c9cd24-8285-4f79-bb2d-825dce797491
2025-08-11 15:30:07,060 - DEBUG - Control-node 10.0.0.128 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-10557103:ctest-vn-38411801', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-10557103', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16119808012503237018', 'uuid-lslong': '12746103599249897995'}, 'enable': 'true', 'created': '2025-08-11T15:30:04', 'last-modified': '2025-08-11T15:30:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.293255'}
2025-08-11 15:30:07,065 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-11 15:30:07,065 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-38411801 passed
2025-08-11 15:30:07,065 - DEBUG - ====Verifying policy data for ctest-vn-38411801 in API_Server ======
2025-08-11 15:30:07,065 - DEBUG - Requesting: http://10.0.0.128:8082/domains
2025-08-11 15:30:07,070 - DEBUG - Requesting: http://10.0.0.128:8082/domain/c0da02fa-8c67-478d-8037-01d49286901b
2025-08-11 15:30:07,084 - DEBUG - Requesting: http://10.0.0.128:8082/project/63df0e8b-c52c-49f5-bd9f-d9ff6cc3c5b2
2025-08-11 15:30:07,165 - DEBUG - Requesting: http://10.0.0.128:8082/virtual-network/dfb50ffb-20c0-419a-b0e3-41b1179e3a0b
2025-08-11 15:30:07,174 - DEBUG - ==>Verifying data for policy with id: e50f9776-2b8e-47da-87b4-b4f4394c44f9, fqn: ['default-domain', 'ctest-TestBasicPolicy-10557103', 'ctest-policy-allow-all-31566567']
2025-08-11 15:30:07,174 - INFO - VN ctest-vn-38411801 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-11 15:30:07,174 - DEBUG - Verifying the vn in opserver
2025-08-11 15:30:07,174 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-10557103:ctest-vn-38411801 virtual network link through opserver 10.0.0.128
2025-08-11 15:30:07,174 - DEBUG - Requesting: http://10.0.0.128:8081/analytics/uves/virtual-networks
2025-08-11 15:30:07,184 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-10557103:ctest-vn-38411801', 'href': 'http://10.0.0.128:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-10557103:ctest-vn-38411801?flat'}
2025-08-11 15:30:07,184 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-10557103:ctest-vn-38411801 is found in opserver
2025-08-11 15:30:07,193 - DEBUG - Do not have enough data to verify VN in agent
2025-08-11 15:30:07,197 - DEBUG - VRF ids for VN ctest-vn-38411801: {}
2025-08-11 15:30:07,248 - DEBUG - Services list from nova: [